|
|
@@ -263,7 +263,6 @@ class OrderController extends BaseController
|
|
|
$post['shopId'] = $shopId;
|
|
|
$post['sjId'] = $this->sjId;
|
|
|
$post['store'] = 0;
|
|
|
- $fromType = dict::getDict('fromType', 'shop');
|
|
|
$post['customId'] = $this->customId;
|
|
|
$user = isset($this->user->attributes) ? $this->user->attributes : [];
|
|
|
$post['bookName'] = isset($user['userName']) ? $user['userName'] : '';
|
|
|
@@ -290,7 +289,7 @@ class OrderController extends BaseController
|
|
|
//微信支付订单提交不能修改价格
|
|
|
$post['modPrice'] = $this->isWx ? 0 : 1;
|
|
|
$post['goodsNum'] = 1;
|
|
|
- $post['fromType'] = $fromType;
|
|
|
+ $post['fromType'] = $post['fromType'] ?? 1;
|
|
|
$post['reachDate'] = isset($post['reachDate']) && !empty($post['reachDate']) ? $post['reachDate'] : '00-00-00';
|
|
|
$post['onlinePay'] = dict::getDict('onlinePay', 'yes');
|
|
|
|