|
@@ -309,9 +309,9 @@ class Placeorder extends AuthController
|
|
if (!$key) return app('json')->fail('参数错误!');
|
|
if (!$key) return app('json')->fail('参数错误!');
|
|
if (StoreOrder::be(['order_id|unique' => $key, 'uid' => $uid, 'is_del' => 0]))
|
|
if (StoreOrder::be(['order_id|unique' => $key, 'uid' => $uid, 'is_del' => 0]))
|
|
return app('json')->status('extend_order', '订单已生成', ['orderId' => $key, 'key' => $key]);
|
|
return app('json')->status('extend_order', '订单已生成', ['orderId' => $key, 'key' => $key]);
|
|
- list($addressId, $couponId, $payType, $useIntegral, $mark, $combinationId, $pinkId, $seckill_id, $formId, $bargainId, $shipping_type) = UtilService::postMore([
|
|
+ list($addressId, $couponId, $payType, $useIntegral, $mark, $combinationId, $pinkId, $seckill_id, $formId, $bargainId, $shipping_type, $offline_type) = UtilService::postMore([
|
|
'addressId', 'couponId', ['payType', 'yue'], ['useIntegral', 0], 'mark', ['combinationId', 0], ['pinkId', 0], ['seckill_id', 0], ['formId', ''], ['bargainId', ''],
|
|
'addressId', 'couponId', ['payType', 'yue'], ['useIntegral', 0], 'mark', ['combinationId', 0], ['pinkId', 0], ['seckill_id', 0], ['formId', ''], ['bargainId', ''],
|
|
- ['shipping_type', 1],
|
|
+ ['shipping_type', 1], ['offline_type', 0],
|
|
], $request, true);
|
|
], $request, true);
|
|
$payType = strtolower($payType);
|
|
$payType = strtolower($payType);
|
|
if ($bargainId) {
|
|
if ($bargainId) {
|
|
@@ -333,7 +333,7 @@ class Placeorder extends AuthController
|
|
if (StoreOrder::getIsOrderPink($pinkId, $uid))
|
|
if (StoreOrder::getIsOrderPink($pinkId, $uid))
|
|
return app('json')->status('ORDER_EXIST', '订单生成失败,你已经参加该团了,请先支付订单', ['orderId' => StoreOrder::getStoreIdPink($pinkId, $uid)]);
|
|
return app('json')->status('ORDER_EXIST', '订单生成失败,你已经参加该团了,请先支付订单', ['orderId' => StoreOrder::getStoreIdPink($pinkId, $uid)]);
|
|
}
|
|
}
|
|
- $priceGroup = StoreOrder::cacheKeyCreateOrder($uid, $key, $addressId, $payType, (int)$useIntegral, $couponId, $mark, $combinationId, $pinkId, $seckill_id, $bargainId, true, 0, $shipping_type);
|
|
+ $priceGroup = StoreOrder::cacheKeyCreateOrder($uid, $key, $addressId, $payType, (int)$useIntegral, $couponId, $mark, $combinationId, $pinkId, $seckill_id, $bargainId, true, 0, $shipping_type, '', '', 0, 0, $offline_type);
|
|
if ($priceGroup)
|
|
if ($priceGroup)
|
|
return app('json')->status('NONE', 'ok', $priceGroup);
|
|
return app('json')->status('NONE', 'ok', $priceGroup);
|
|
else
|
|
else
|
|
@@ -357,9 +357,9 @@ class Placeorder extends AuthController
|
|
if (!$key) return app('json')->fail('参数错误!');
|
|
if (!$key) return app('json')->fail('参数错误!');
|
|
if (StoreOrder::be(['order_id|unique' => $key, 'uid' => $uid, 'is_del' => 0]))
|
|
if (StoreOrder::be(['order_id|unique' => $key, 'uid' => $uid, 'is_del' => 0]))
|
|
return app('json')->status('extend_order', '订单已生成', ['orderId' => $key, 'key' => $key]);
|
|
return app('json')->status('extend_order', '订单已生成', ['orderId' => $key, 'key' => $key]);
|
|
- list($addressId, $couponId, $payType, $useIntegral, $mark, $combinationId, $pinkId, $seckill_id, $formId, $bargainId, $from, $shipping_type, $real_name, $phone, $storeId, $auth_code) = UtilService::postMore([
|
|
+ list($addressId, $couponId, $payType, $useIntegral, $mark, $combinationId, $pinkId, $seckill_id, $formId, $bargainId, $from, $shipping_type, $real_name, $phone, $storeId, $auth_code, $offline_type) = UtilService::postMore([
|
|
'addressId', 'couponId', 'payType', ['useIntegral', 0], 'mark', ['combinationId', 0], ['pinkId', 0], ['seckill_id', 0], ['formId', ''], ['bargainId', ''], ['from', 'weixin'],
|
|
'addressId', 'couponId', 'payType', ['useIntegral', 0], 'mark', ['combinationId', 0], ['pinkId', 0], ['seckill_id', 0], ['formId', ''], ['bargainId', ''], ['from', 'weixin'],
|
|
- ['shipping_type', 1], ['real_name', '散户'], ['phone', '18700010001'], ['store_id', 0], ['auth_code', ''],
|
|
+ ['shipping_type', 1], ['real_name', '散户'], ['phone', '18700010001'], ['store_id', 0], ['auth_code', ''], ['offline_type', 0],
|
|
], $request, true);
|
|
], $request, true);
|
|
if (empty($real_name)) $real_name = '散户';
|
|
if (empty($real_name)) $real_name = '散户';
|
|
if (empty($phone)) $phone = '18700010001';
|
|
if (empty($phone)) $phone = '18700010001';
|
|
@@ -389,7 +389,7 @@ class Placeorder extends AuthController
|
|
elseif ($from == 'weixinh5')
|
|
elseif ($from == 'weixinh5')
|
|
$isChannel = 2;
|
|
$isChannel = 2;
|
|
|
|
|
|
- $order = StoreOrder::cacheKeyCreateOrder($uid, $key, $addressId, $payType, (int)$useIntegral, $couponId, $mark, $combinationId, $pinkId, $seckill_id, $bargainId, false, $isChannel, $shipping_type, $real_name, $phone, $storeId);
|
|
+ $order = StoreOrder::cacheKeyCreateOrder($uid, $key, $addressId, $payType, (int)$useIntegral, $couponId, $mark, $combinationId, $pinkId, $seckill_id, $bargainId, false, $isChannel, $shipping_type, $real_name, $phone, $storeId, 0, $offline_type);
|
|
if ($order === false) return app('json')->fail(StoreOrder::getErrorInfo('订单生成失败'));
|
|
if ($order === false) return app('json')->fail(StoreOrder::getErrorInfo('订单生成失败'));
|
|
$orderId = $order['order_id'];
|
|
$orderId = $order['order_id'];
|
|
$info = compact('orderId', 'key');
|
|
$info = compact('orderId', 'key');
|