sunhao 5 years ago
parent
commit
3dc4dc44a7
3 changed files with 665 additions and 4 deletions
  1. 1 0
      app/Error.php
  2. 657 0
      app/Http/Controllers/Api/OrderController.php
  3. 7 4
      app/Http/routes.php

+ 1 - 0
app/Error.php

@@ -12,6 +12,7 @@ class Error
12 12
      */
13 13
     public static $errCodes = [
14 14
 
15
+
15 16
         0    => "成功",
16 17
         200  =>'请求成功',
17 18
         1001 => '未分配销售',

File diff suppressed because it is too large
+ 657 - 0
app/Http/Controllers/Api/OrderController.php


+ 7 - 4
app/Http/routes.php

@@ -310,10 +310,6 @@ Route::group(['prefix' => 'api'], function() {
310 310
     Route::get('/template/qrcode', 'Api\TemplateController@salerQrcode');
311 311
     Route::get('/template/addLongLog', 'Api\TemplateController@addLongLog');
312 312
     Route::get('/dayGrandTotal', 'Api\TemplateController@dayGrandTotal');
313
-
314
-});
315
-
316
-Route::group(['prefix' => 'api'], function(){
317 313
     #h5登录
318 314
     Route::post('/login','Api\LoginController@doLogin');
319 315
 
@@ -321,4 +317,11 @@ Route::group(['prefix' => 'api'], function(){
321 317
     Route::get('/goodsList','Api\GoodsController@index');
322 318
     #添加商品-商品搜索
323 319
     Route::post('/searchGoods','Api\GoodsController@searchGoods');
320
+
321
+    Route::get('/order/orderList', 'Api\OrderController@orderList');
322
+    Route::post('/order/orderstore', 'Api\OrderController@orderstore');
323
+    Route::post('/order/orderupdate', 'Api\OrderController@orderupdate');
324
+    Route::get('/order/getAddress', 'Api\OrderController@getAddress');
325
+    Route::get('/order/getBalance', 'Api\OrderController@getBalance');
326
+    Route::post('/order/setverify', 'Api\OrderController@setverify');
324 327
 });