配送员取货后通知商超系统

This commit is contained in:
luofei 2023-08-11 09:50:55 +08:00
parent c4be7fc22d
commit e1a17a727b

View File

@ -210,9 +210,6 @@ class LogisticsLogic extends BaseLogic
'content' => '用户提交订单',
'create_time' => time(),
]);
//调用接口通知商超平台
$url = 'https://crmeb-test.shop.lihaink.cn/api/goods/take/'.$params['order_id'];
curl_post($url,[],['order_sn'=>$params['order_sn']]);
Logistics::commit();
return ['code'=>1, 'msg'=>'操作成功','data'=>$courierInfo];
} catch (\Exception $e) {
@ -262,6 +259,9 @@ class LogisticsLogic extends BaseLogic
'content' => '已提取商品',
'create_time' => time(),
]);
//调用接口通知商超平台
$url = 'https://crmeb-test.shop.lihaink.cn/api/goods/take/'.$params['order_id'];
curl_post($url,[],['order_sn'=>$params['order_sn']]);
Logistics::commit();
return ['code'=>1, 'msg'=>'操作成功'];
} catch (\Exception $e) {