...
|
...
|
@@ -465,31 +465,6 @@ class IndexController extends WebAction |
|
|
}
|
|
|
while (false);
|
|
|
|
|
|
// $result = CartModel::orderSub($uid, $addressId, $cartType, $deliveryTime, $deliveryWay, $invoiceTitle, $invoiceId, $paymentId, $paymentType, $remark, $couponCode, $yohoCoin);
|
|
|
//
|
|
|
// 记录下单异常的数据
|
|
|
if (empty($result)) {
|
|
|
$message = 'uid:' . $uid . ',addressId:' . $addressId . ',cartType:' . $cartType . ',deliveryTime:' . $deliveryTime
|
|
|
. ',deliveryWay:' . $deliveryWay . 'invoiceTitle:' . $invoiceTitle . ',invoiceId:' . $invoiceId . ',yohoCoin:' . $yohoCoin
|
|
|
. ',paymentId:' . $paymentId . ',paymentType:' . $paymentType . ',remark:' . $remark . ',couponCode:' . $couponCode . "\n";
|
|
|
UdpLog::info('【下单】下单异常数据','message:'.$message,'返回:'.json_encode($result));
|
|
|
}
|
|
|
// // 返回数据
|
|
|
// else {
|
|
|
// // 提交成功清除Cookie
|
|
|
// $this->setCookie('order-info', null);
|
|
|
//
|
|
|
// $this->echoJson($result);
|
|
|
// }
|
|
|
//
|
|
|
// if ($uid && !empty($result['data'])) {
|
|
|
// try {
|
|
|
// UnionTrans::set($uid, $result['data']['order_code'], $result['data']['order_amount']);
|
|
|
// } catch (Exception $e) {
|
|
|
// // do nothing
|
|
|
// }
|
|
|
// }
|
|
|
|
|
|
$this->echoJson($result);
|
|
|
}
|
|
|
|
...
|
...
|
|