|
|
@@ -69,6 +69,14 @@ class OrderController extends BaseController
|
|
|
$totalAmount = $totalFee;
|
|
|
$body = "到店订单";
|
|
|
|
|
|
+ //标记为扫码支付 和 自取订单
|
|
|
+ $order->codePay = 2;
|
|
|
+ $order->sendType = OrderClass::SEND_TYPE_NO;
|
|
|
+ $order->save();
|
|
|
+ $cg->getType = PurchaseClass::GET_TYPE_SELF_GET;
|
|
|
+ $cg->codePay = 2;
|
|
|
+ $cg->save();
|
|
|
+
|
|
|
$wxPayWay = dict::getDict('payWay', 'wxPay');
|
|
|
$aliPayWay = dict::getDict('payWay', 'alipay');
|
|
|
$payWay = Yii::$app->request->get('payWay', $wxPayWay);
|
|
|
@@ -351,7 +359,7 @@ class OrderController extends BaseController
|
|
|
PurchaseService::codePay($payWay, $orderSn, $transactionId, $openId, $aliUserId);
|
|
|
util::success(['returnStatus' => 'SUCCESS']);
|
|
|
}
|
|
|
- util::complete('');
|
|
|
+ util::success(['returnStatus' => 'FAILURE']);
|
|
|
|
|
|
} else {
|
|
|
|
|
|
@@ -412,7 +420,9 @@ class OrderController extends BaseController
|
|
|
$aliUserId = $respond->buyer_user_id ?? '';
|
|
|
$transactionId = $respond->trade_no ?? '';
|
|
|
PurchaseService::codePay($aliPayWay, $orderSn, $transactionId, $openId, $aliUserId);
|
|
|
+ util::success(['returnStatus' => 'SUCCESS']);
|
|
|
}
|
|
|
+ util::success(['returnStatus' => 'FAILURE']);
|
|
|
}
|
|
|
}
|
|
|
|