fly 5 years ago
parent
commit
4aba604c38

+ 1 - 0
app/Http/Controllers/QuickApp/Oauth/UsersController.php

@@ -21,6 +21,7 @@ class UsersController extends Controller
      * @apiParam  {String}  device_no 设备号
      * @apiParam  {String}  device_no 设备号
      * @apiParam  {String}  device_info 设备信息json格式
      * @apiParam  {String}  device_info 设备信息json格式
      * @apiParam  {Int}     send_order_id send_order_id
      * @apiParam  {Int}     send_order_id send_order_id
+     * @apiParam  {String}  sign 签名
      * @apiGroup Login
      * @apiGroup Login
      * @apiName index
      * @apiName index
      * @apiSuccess {int}         code 状态码
      * @apiSuccess {int}         code 状态码

+ 4 - 1
app/Http/Routes/QuickApp/QuickAppRoutes.php

@@ -4,8 +4,11 @@ Route::group(['domain' => env('QUICKAPP_DOMAIN'), 'namespace' => 'App\Http\Contr
 
 
     //支付回调
     //支付回调
     Route::any('pay/wcback', 'Order\OrdersController@wxback');
     Route::any('pay/wcback', 'Order\OrdersController@wxback');
+
+    // Route::group(['prefix' => 'api', 'middleware' => 'checkSign'], function () {
     //登录
     //登录
-    Route::post('api/login', 'Oauth\UsersController@index');
+    Route::post('login', 'Oauth\UsersController@index');
+    // });
 
 
     Route::group(['prefix' => 'api', 'middleware' => 'jwttoken'], function () {
     Route::group(['prefix' => 'api', 'middleware' => 'jwttoken'], function () {
         //刷新token
         //刷新token

+ 7 - 0
public/kyydoc/api_data.js

@@ -2302,6 +2302,13 @@ define({ "api": [
             "optional": false,
             "optional": false,
             "field": "send_order_id",
             "field": "send_order_id",
             "description": "<p>send_order_id</p>"
             "description": "<p>send_order_id</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "sign",
+            "description": "<p>签名</p>"
           }
           }
         ]
         ]
       }
       }

+ 7 - 0
public/kyydoc/api_data.json

@@ -2302,6 +2302,13 @@
             "optional": false,
             "optional": false,
             "field": "send_order_id",
             "field": "send_order_id",
             "description": "<p>send_order_id</p>"
             "description": "<p>send_order_id</p>"
+          },
+          {
+            "group": "Parameter",
+            "type": "String",
+            "optional": false,
+            "field": "sign",
+            "description": "<p>签名</p>"
           }
           }
         ]
         ]
       }
       }

+ 1 - 1
public/kyydoc/api_project.js

@@ -17,7 +17,7 @@ define({
   "apidoc": "0.3.0",
   "apidoc": "0.3.0",
   "generator": {
   "generator": {
     "name": "apidoc",
     "name": "apidoc",
-    "time": "2019-10-28T05:53:36.128Z",
+    "time": "2019-10-28T08:17:35.252Z",
     "url": "http://apidocjs.com",
     "url": "http://apidocjs.com",
     "version": "0.17.7"
     "version": "0.17.7"
   }
   }

+ 1 - 1
public/kyydoc/api_project.json

@@ -17,7 +17,7 @@
   "apidoc": "0.3.0",
   "apidoc": "0.3.0",
   "generator": {
   "generator": {
     "name": "apidoc",
     "name": "apidoc",
-    "time": "2019-10-28T05:53:36.128Z",
+    "time": "2019-10-28T08:17:35.252Z",
     "url": "http://apidocjs.com",
     "url": "http://apidocjs.com",
     "version": "0.17.7"
     "version": "0.17.7"
   }
   }