fly 5 年之前
父節點
當前提交
573ecd664c

+ 1 - 0
app/Http/Controllers/QuickApp/Order/OrdersController.php

@@ -507,6 +507,7 @@ class OrdersController extends BaseController
      * @apiSuccess {Object}  data.prepay_id 唤起支付的prepay_id
      * @apiSuccess {Object}  data.sign 唤起支付的sign
      * @apiSuccess {Object}  data.trade_type 唤起支付trade_type
+     * @apiSuccess {Object}  data.mweb_url 唤起支付mweb_url
      * @apiSuccessExample {json} Success-Response:
      *     HTTP/1.1 200 OK
      *     {

+ 134 - 0
public/kyydoc/api_data.js

@@ -3993,6 +3993,140 @@ define({ "api": [
   },
   {
     "version": "1.0.0",
+    "description": "<p>微信H5支付</p>",
+    "type": "get",
+    "url": "goToH5Pay",
+    "title": "微信H5支付",
+    "group": "pay",
+    "name": "wxindex",
+    "parameter": {
+      "fields": {
+        "Parameter": [
+          {
+            "group": "Parameter",
+            "type": "Int",
+            "optional": false,
+            "field": "product_id",
+            "description": "<p>product_id</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "Int",
+            "optional": false,
+            "field": "send_order_id",
+            "description": "<p>send_order_id</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "bid",
+            "description": "<p>bid</p>"
+          }
+        ]
+      }
+    },
+    "header": {
+      "fields": {
+        "Header": [
+          {
+            "group": "Header",
+            "type": "String",
+            "optional": true,
+            "field": "Authorization",
+            "description": "<p>token</p>"
+          }
+        ]
+      }
+    },
+    "success": {
+      "fields": {
+        "Success 200": [
+          {
+            "group": "Success 200",
+            "type": "int",
+            "optional": false,
+            "field": "code",
+            "description": "<p>状态码</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "String",
+            "optional": false,
+            "field": "msg",
+            "description": "<p>信息</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "Object",
+            "optional": false,
+            "field": "data",
+            "description": "<p>信息</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "Object",
+            "optional": false,
+            "field": "data.appId",
+            "description": "<p>唤起支付的appId</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "Object",
+            "optional": false,
+            "field": "data.mch_id",
+            "description": "<p>唤起支付的mch_id</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "Object",
+            "optional": false,
+            "field": "data.nonce_str",
+            "description": "<p>唤起支付的nonce_str</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "Object",
+            "optional": false,
+            "field": "data.prepay_id",
+            "description": "<p>唤起支付的prepay_id</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "Object",
+            "optional": false,
+            "field": "data.sign",
+            "description": "<p>唤起支付的sign</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "Object",
+            "optional": false,
+            "field": "data.trade_type",
+            "description": "<p>唤起支付trade_type</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "Object",
+            "optional": false,
+            "field": "data.mweb_url",
+            "description": "<p>唤起支付mweb_url</p>"
+          }
+        ]
+      },
+      "examples": [
+        {
+          "title": "Success-Response:",
+          "content": "HTTP/1.1 200 OK\n{\n  code: 0,\n  msg: \"\",\n  data: {\n\n  }",
+          "type": "json"
+        }
+      ]
+    },
+    "filename": "app/Http/Controllers/QuickApp/Order/OrdersController.php",
+    "groupTitle": "pay"
+  },
+  {
+    "version": "1.0.0",
     "description": "<p>支付</p>",
     "type": "get",
     "url": "goToPay",

+ 134 - 0
public/kyydoc/api_data.json

@@ -3993,6 +3993,140 @@
   },
   {
     "version": "1.0.0",
+    "description": "<p>微信H5支付</p>",
+    "type": "get",
+    "url": "goToH5Pay",
+    "title": "微信H5支付",
+    "group": "pay",
+    "name": "wxindex",
+    "parameter": {
+      "fields": {
+        "Parameter": [
+          {
+            "group": "Parameter",
+            "type": "Int",
+            "optional": false,
+            "field": "product_id",
+            "description": "<p>product_id</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "Int",
+            "optional": false,
+            "field": "send_order_id",
+            "description": "<p>send_order_id</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "bid",
+            "description": "<p>bid</p>"
+          }
+        ]
+      }
+    },
+    "header": {
+      "fields": {
+        "Header": [
+          {
+            "group": "Header",
+            "type": "String",
+            "optional": true,
+            "field": "Authorization",
+            "description": "<p>token</p>"
+          }
+        ]
+      }
+    },
+    "success": {
+      "fields": {
+        "Success 200": [
+          {
+            "group": "Success 200",
+            "type": "int",
+            "optional": false,
+            "field": "code",
+            "description": "<p>状态码</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "String",
+            "optional": false,
+            "field": "msg",
+            "description": "<p>信息</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "Object",
+            "optional": false,
+            "field": "data",
+            "description": "<p>信息</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "Object",
+            "optional": false,
+            "field": "data.appId",
+            "description": "<p>唤起支付的appId</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "Object",
+            "optional": false,
+            "field": "data.mch_id",
+            "description": "<p>唤起支付的mch_id</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "Object",
+            "optional": false,
+            "field": "data.nonce_str",
+            "description": "<p>唤起支付的nonce_str</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "Object",
+            "optional": false,
+            "field": "data.prepay_id",
+            "description": "<p>唤起支付的prepay_id</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "Object",
+            "optional": false,
+            "field": "data.sign",
+            "description": "<p>唤起支付的sign</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "Object",
+            "optional": false,
+            "field": "data.trade_type",
+            "description": "<p>唤起支付trade_type</p>"
+          },
+          {
+            "group": "Success 200",
+            "type": "Object",
+            "optional": false,
+            "field": "data.mweb_url",
+            "description": "<p>唤起支付mweb_url</p>"
+          }
+        ]
+      },
+      "examples": [
+        {
+          "title": "Success-Response:",
+          "content": "HTTP/1.1 200 OK\n{\n  code: 0,\n  msg: \"\",\n  data: {\n\n  }",
+          "type": "json"
+        }
+      ]
+    },
+    "filename": "app/Http/Controllers/QuickApp/Order/OrdersController.php",
+    "groupTitle": "pay"
+  },
+  {
+    "version": "1.0.0",
     "description": "<p>支付</p>",
     "type": "get",
     "url": "goToPay",

+ 1 - 1
public/kyydoc/api_project.js

@@ -17,7 +17,7 @@ define({
   "apidoc": "0.3.0",
   "generator": {
     "name": "apidoc",
-    "time": "2019-10-30T09:08:34.305Z",
+    "time": "2019-10-31T01:37:45.728Z",
     "url": "http://apidocjs.com",
     "version": "0.17.7"
   }

+ 1 - 1
public/kyydoc/api_project.json

@@ -17,7 +17,7 @@
   "apidoc": "0.3.0",
   "generator": {
     "name": "apidoc",
-    "time": "2019-10-30T09:08:34.305Z",
+    "time": "2019-10-31T01:37:45.728Z",
     "url": "http://apidocjs.com",
     "version": "0.17.7"
   }