|
@@ -60,7 +60,7 @@ class PublicController
|
|
|
if (!$orderKey) return app('json')->fail('生成订单错误!');
|
|
if (!$orderKey) return app('json')->fail('生成订单错误!');
|
|
|
if (StoreOrder::be(['order_id|unique' => $orderKey, 'uid' => $uid, 'is_del' => 0]))
|
|
if (StoreOrder::be(['order_id|unique' => $orderKey, 'uid' => $uid, 'is_del' => 0]))
|
|
|
return app('json')->fail('订单已生成');
|
|
return app('json')->fail('订单已生成');
|
|
|
- $order = StoreOrder::cacheKeyCreateOrder($uid, $orderKey, 0, 'offline', false, 0, '系统后台订单', 0, 0, 0, 0, 0, $exchange_id, false, 1, 1, '', '', 0, 0, 1);
|
|
|
|
|
|
|
+ $order = StoreOrder::cacheKeyCreateOrder($uid, $orderKey, 0, 'wechat', false, 0, '系统后台订单', 0, 0, 0, 0, 0, $exchange_id, false, 1, 1, '', '', 0, 0, 1);
|
|
|
// StoreOrder::paySuccess($order);
|
|
// StoreOrder::paySuccess($order);
|
|
|
if ($order === false) return app('json')->fail(StoreOrder::getErrorInfo('订单生成失败'));
|
|
if ($order === false) return app('json')->fail(StoreOrder::getErrorInfo('订单生成失败'));
|
|
|
else return app('json')->success('订单已生成');
|
|
else return app('json')->success('订单已生成');
|