|
|
@@ -815,32 +815,29 @@ class OrderController extends BaseController
|
|
|
//跑腿订单生产者创建订单 // TODO
|
|
|
$sendType = $post['sendType'] ?? 0;
|
|
|
if($order->payStatus == 1 && $sendType == dict::getDict('sendType', 'thirdSend') && $post['callErrand'] == 1){ // $post 中有 pickupTime,则说明是要立即发跑腿
|
|
|
- $payWay = $post['payWay'];
|
|
|
- if($hasPay != dict::getDict('hasPay', 'unPay')){
|
|
|
- $platform = $post['deliveryPlatform'];
|
|
|
- $deliveryPrice = $post['deliveryPrice'];
|
|
|
- $deliveryDistance = $post['deliveryDistance'];
|
|
|
- $deliveryBracketContent = $post['deliveryBracketContent'];
|
|
|
- $pickupTime = $post['pickupTime'];
|
|
|
- $allParams = $post['deliveryAllParams'];
|
|
|
- $data = [
|
|
|
- 'orderId' => $order->id,
|
|
|
- 'mainId' => $this->mainId,
|
|
|
- 'shopId' => $this->shopId,
|
|
|
- 'platform' => $platform,
|
|
|
- 'ip' => Yii::$app->request->userIP,
|
|
|
- 'deliveryPrice' => $deliveryPrice,
|
|
|
- 'deliveryDistance' => $deliveryDistance,
|
|
|
- 'deliveryBracketContent' => $deliveryBracketContent,
|
|
|
- 'pickupTime' => $pickupTime,
|
|
|
- 'allParams' => $allParams,
|
|
|
- //-----------------------
|
|
|
- 'weight' => $post['weight'] ?? 1, // TODO
|
|
|
- 'remark' => $post['deliveryRemark'] ?? '',
|
|
|
- 'price' => $order->actPrice,
|
|
|
- ];
|
|
|
- HdDeliveryOrderClass::askCreateOrder($data);
|
|
|
- }
|
|
|
+ $platform = $post['deliveryPlatform'];
|
|
|
+ $deliveryPrice = $post['deliveryPrice'];
|
|
|
+ $deliveryDistance = $post['deliveryDistance'];
|
|
|
+ $deliveryBracketContent = $post['deliveryBracketContent'];
|
|
|
+ $pickupTime = $post['pickupTime'];
|
|
|
+ $allParams = $post['deliveryAllParams'];
|
|
|
+ $data = [
|
|
|
+ 'orderId' => $order->id,
|
|
|
+ 'mainId' => $this->mainId,
|
|
|
+ 'shopId' => $this->shopId,
|
|
|
+ 'platform' => $platform,
|
|
|
+ 'ip' => Yii::$app->request->userIP,
|
|
|
+ 'deliveryPrice' => $deliveryPrice,
|
|
|
+ 'deliveryDistance' => $deliveryDistance,
|
|
|
+ 'deliveryBracketContent' => $deliveryBracketContent,
|
|
|
+ 'pickupTime' => $pickupTime,
|
|
|
+ 'allParams' => $allParams,
|
|
|
+ //-----------------------
|
|
|
+ 'weight' => $post['weight'] ?? 1, // TODO
|
|
|
+ 'remark' => $post['deliveryRemark'] ?? '',
|
|
|
+ 'price' => $order->actPrice,
|
|
|
+ ];
|
|
|
+ HdDeliveryOrderClass::askCreateOrder($data);
|
|
|
}
|
|
|
|
|
|
util::success($return);
|