afa 5 сар өмнө
parent
commit
2cc3480188

+ 7 - 1
app/api/controller/Shops.php

@@ -30,7 +30,7 @@ class Shops extends Base
         if(empty($platform_id)){
             $this->error('参数有误');
         }
-        return $this->success('ok', [$shopList->where('platform', $platform_id)->column('name', 'id')]);   
+        return $this->success('ok', $shopList->where('platform', $platform_id)->column('name', 'id'));   
     }
 
 
@@ -46,6 +46,12 @@ class Shops extends Base
         return $this->success('ok', $shopList);  
     }
 
+    //发货记录
+    public function delivery(UserEnterLog $userEnterLog){
+
+
+
+    }
 
     //添加记录
     public function create(UserEnterLog $userEnterLog)

+ 3 - 0
app/api/route/route.php

@@ -24,6 +24,9 @@ Route::group('user', function () {
     //添加记录
     Route::rule('create','shops/create','POST');
 
+    //发货记录
+    Route::rule('delivery','shops/delivery','POST');
+
     //出入库
     Route::rule('stock','inventory/stock','POST');