|
@@ -4,6 +4,7 @@ namespace App\Http\Controllers\Api;
|
|
|
|
|
|
|
|
|
use App\Model\BigKingTbj;
|
|
|
+use App\Service\DwyService;
|
|
|
use App\Service\EmployeeService;
|
|
|
use App\Service\SysMenuService;
|
|
|
use Illuminate\Http\Request;
|
|
@@ -645,12 +646,11 @@ class DwyController extends BaseController
|
|
|
|
|
|
public function setLb(Request $request)
|
|
|
{
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
$param = $request->all();
|
|
|
-
|
|
|
file_put_contents('dwy.txt', json_encode($param) . PHP_EOL, 8);
|
|
|
+ list($status,$msg) = DwyService::getInstance()->setLimitForBoxOut($param);
|
|
|
+ if(! $status) return ['status' => '201', 'data' => [],'msg'=> $msg];
|
|
|
+
|
|
|
// $param = [
|
|
|
// 'token'=>'Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIyNzM2OTUyNTA3NTI5NTQzNzMiLCJhdXRoIjoiUk9MRV9JTk5FUl9VU0VSLFJPTEVfQlJBTkRfQVJSRVNULFJPTEVfQURNSU4iLCJ0b2tlbklkIjoiOTUwIiwiZXhwIjoxNzA3OTcxMTcxfQ.2VQ9Wqmk4rvKAcTsQPw59llBbeXjalKDGIZA4kesnuOJ0POmPVOVlRLbTtUDxl0XiFdPDUrKzuEFl2DXSgQdJg',
|
|
|
// 'list'=>[
|
|
@@ -670,8 +670,6 @@ class DwyController extends BaseController
|
|
|
//
|
|
|
// return $this->test();
|
|
|
// }
|
|
|
-
|
|
|
-
|
|
|
$url = 'https://tm.dwycloud.com/jbl/api/module-data/brand_in_stock/brand_in_stock/diy/box_inventory';
|
|
|
$header = [
|
|
|
'Content-Type:application/json',
|