瀏覽代碼

充值提现

dyjh 6 年之前
父節點
當前提交
4e91b209d1

+ 3 - 3
app/Http/Controllers/Api/V1/PayController.php

xqd xqd xqd
@@ -50,7 +50,7 @@ class PayController extends Controller
      * @apiGroup Pay
      * @apiPermission none
      * @apiVersion 0.1.0
-     * @apiParam {decimal}  price    内容
+     * @apiParam {decimal}  price  金额
      * @apiSuccessExample {json} Success-Response:
      * HTTP/1.1 200 OK
      * {
@@ -58,7 +58,7 @@ class PayController extends Controller
      * "status_code": 0,
      * "message": "",
      * "data": {
-     *      "msg": "已成功发起提现,请等待后台审核"
+     *      "json": "{\"appId\":\"wx92066f7587c34617\",\"timeStamp\":\"1532584373\",\"nonceStr\":\"5b5961b537a27\",\"package\":\"prepay_id=wx2613525320101170a0f42d941994171920\",\"signType\":\"MD5\",\"paySign\":\"B4E50A4610F3AC4AE2E12EF2A45D8109\"}"
      *    }
      *}
      * @apiErrorExample {json} Error-Response:
@@ -157,7 +157,7 @@ class PayController extends Controller
      * @apiGroup Pay
      * @apiPermission none
      * @apiVersion 0.1.0
-     * @apiParam {decimal}  price    内容
+     * @apiParam {decimal}  price    金额
      * @apiParam {string}  name    真实姓名
      * @apiSuccessExample {json} Success-Response:
      * HTTP/1.1 200 OK

+ 101 - 0
public/apidoc/api_data.js

xqd
@@ -403,6 +403,107 @@ define({ "api": [
     "groupTitle": "Login",
     "name": "PostApiLogin"
   },
+  {
+    "type": "post",
+    "url": "/api/pay/cash",
+    "title": "提现(cash)",
+    "description": "<p>提现(cash)cash</p>",
+    "group": "Pay",
+    "permission": [
+      {
+        "name": "none"
+      }
+    ],
+    "version": "0.1.0",
+    "parameter": {
+      "fields": {
+        "Parameter": [
+          {
+            "group": "Parameter",
+            "type": "decimal",
+            "optional": false,
+            "field": "price",
+            "description": "<p>金额</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "string",
+            "optional": false,
+            "field": "name",
+            "description": "<p>真实姓名</p>"
+          }
+        ]
+      }
+    },
+    "success": {
+      "examples": [
+        {
+          "title": "Success-Response:",
+          "content": "HTTP/1.1 200 OK\n{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n\"data\": {\n     \"msg\": \"已成功发起提现,请等待后台审核\"\n   }\n}",
+          "type": "json"
+        }
+      ]
+    },
+    "error": {
+      "examples": [
+        {
+          "title": "Error-Response:",
+          "content": "HTTP/1.1 400 Bad Request\n{\n    \"state\": false,\n    \"code\": 1000,\n    \"message\": \"传入参数不正确\",\n    \"data\": null or []\n}",
+          "type": "json"
+        }
+      ]
+    },
+    "filename": "app/Http/Controllers/Api/V1/PayController.php",
+    "groupTitle": "Pay",
+    "name": "PostApiPayCash"
+  },
+  {
+    "type": "post",
+    "url": "/api/pay/recharge",
+    "title": "充值(recharge)",
+    "description": "<p>充值(recharge)recharge</p>",
+    "group": "Pay",
+    "permission": [
+      {
+        "name": "none"
+      }
+    ],
+    "version": "0.1.0",
+    "parameter": {
+      "fields": {
+        "Parameter": [
+          {
+            "group": "Parameter",
+            "type": "decimal",
+            "optional": false,
+            "field": "price",
+            "description": "<p>金额</p>"
+          }
+        ]
+      }
+    },
+    "success": {
+      "examples": [
+        {
+          "title": "Success-Response:",
+          "content": "HTTP/1.1 200 OK\n{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n\"data\": {\n     \"json\": \"{\\\"appId\\\":\\\"wx92066f7587c34617\\\",\\\"timeStamp\\\":\\\"1532584373\\\",\\\"nonceStr\\\":\\\"5b5961b537a27\\\",\\\"package\\\":\\\"prepay_id=wx2613525320101170a0f42d941994171920\\\",\\\"signType\\\":\\\"MD5\\\",\\\"paySign\\\":\\\"B4E50A4610F3AC4AE2E12EF2A45D8109\\\"}\"\n   }\n}",
+          "type": "json"
+        }
+      ]
+    },
+    "error": {
+      "examples": [
+        {
+          "title": "Error-Response:",
+          "content": "HTTP/1.1 400 Bad Request\n{\n    \"state\": false,\n    \"code\": 1000,\n    \"message\": \"传入参数不正确\",\n    \"data\": null or []\n}",
+          "type": "json"
+        }
+      ]
+    },
+    "filename": "app/Http/Controllers/Api/V1/PayController.php",
+    "groupTitle": "Pay",
+    "name": "PostApiPayRecharge"
+  },
   {
     "type": "get",
     "url": "/api/user/complete_message",

+ 101 - 0
public/apidoc/api_data.json

xqd
@@ -403,6 +403,107 @@
     "groupTitle": "Login",
     "name": "PostApiLogin"
   },
+  {
+    "type": "post",
+    "url": "/api/pay/cash",
+    "title": "提现(cash)",
+    "description": "<p>提现(cash)cash</p>",
+    "group": "Pay",
+    "permission": [
+      {
+        "name": "none"
+      }
+    ],
+    "version": "0.1.0",
+    "parameter": {
+      "fields": {
+        "Parameter": [
+          {
+            "group": "Parameter",
+            "type": "decimal",
+            "optional": false,
+            "field": "price",
+            "description": "<p>金额</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "string",
+            "optional": false,
+            "field": "name",
+            "description": "<p>真实姓名</p>"
+          }
+        ]
+      }
+    },
+    "success": {
+      "examples": [
+        {
+          "title": "Success-Response:",
+          "content": "HTTP/1.1 200 OK\n{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n\"data\": {\n     \"msg\": \"已成功发起提现,请等待后台审核\"\n   }\n}",
+          "type": "json"
+        }
+      ]
+    },
+    "error": {
+      "examples": [
+        {
+          "title": "Error-Response:",
+          "content": "HTTP/1.1 400 Bad Request\n{\n    \"state\": false,\n    \"code\": 1000,\n    \"message\": \"传入参数不正确\",\n    \"data\": null or []\n}",
+          "type": "json"
+        }
+      ]
+    },
+    "filename": "app/Http/Controllers/Api/V1/PayController.php",
+    "groupTitle": "Pay",
+    "name": "PostApiPayCash"
+  },
+  {
+    "type": "post",
+    "url": "/api/pay/recharge",
+    "title": "充值(recharge)",
+    "description": "<p>充值(recharge)recharge</p>",
+    "group": "Pay",
+    "permission": [
+      {
+        "name": "none"
+      }
+    ],
+    "version": "0.1.0",
+    "parameter": {
+      "fields": {
+        "Parameter": [
+          {
+            "group": "Parameter",
+            "type": "decimal",
+            "optional": false,
+            "field": "price",
+            "description": "<p>金额</p>"
+          }
+        ]
+      }
+    },
+    "success": {
+      "examples": [
+        {
+          "title": "Success-Response:",
+          "content": "HTTP/1.1 200 OK\n{\n\"status\": true,\n\"status_code\": 0,\n\"message\": \"\",\n\"data\": {\n     \"json\": \"{\\\"appId\\\":\\\"wx92066f7587c34617\\\",\\\"timeStamp\\\":\\\"1532584373\\\",\\\"nonceStr\\\":\\\"5b5961b537a27\\\",\\\"package\\\":\\\"prepay_id=wx2613525320101170a0f42d941994171920\\\",\\\"signType\\\":\\\"MD5\\\",\\\"paySign\\\":\\\"B4E50A4610F3AC4AE2E12EF2A45D8109\\\"}\"\n   }\n}",
+          "type": "json"
+        }
+      ]
+    },
+    "error": {
+      "examples": [
+        {
+          "title": "Error-Response:",
+          "content": "HTTP/1.1 400 Bad Request\n{\n    \"state\": false,\n    \"code\": 1000,\n    \"message\": \"传入参数不正确\",\n    \"data\": null or []\n}",
+          "type": "json"
+        }
+      ]
+    },
+    "filename": "app/Http/Controllers/Api/V1/PayController.php",
+    "groupTitle": "Pay",
+    "name": "PostApiPayRecharge"
+  },
   {
     "type": "get",
     "url": "/api/user/complete_message",

+ 1 - 1
public/apidoc/api_project.js

xqd
@@ -9,7 +9,7 @@ define({
   "apidoc": "0.3.0",
   "generator": {
     "name": "apidoc",
-    "time": "2018-07-25T09:17:05.790Z",
+    "time": "2018-07-26T05:56:01.081Z",
     "url": "http://apidocjs.com",
     "version": "0.17.6"
   }

+ 1 - 1
public/apidoc/api_project.json

xqd
@@ -9,7 +9,7 @@
   "apidoc": "0.3.0",
   "generator": {
     "name": "apidoc",
-    "time": "2018-07-25T09:17:05.790Z",
+    "time": "2018-07-26T05:56:01.081Z",
     "url": "http://apidocjs.com",
     "version": "0.17.6"
   }