diff --git a/app/api/logic/LogisticsLogic.php b/app/api/logic/LogisticsLogic.php index bf45d31f..38412a17 100644 --- a/app/api/logic/LogisticsLogic.php +++ b/app/api/logic/LogisticsLogic.php @@ -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) {