Merge branch 'hotfix/wechatOrder' into release/flaw
Showing
2 changed files
with
3 additions
and
3 deletions
@@ -301,7 +301,7 @@ class PaymentModel | @@ -301,7 +301,7 @@ class PaymentModel | ||
301 | * @param string $orderCode 订单号 | 301 | * @param string $orderCode 订单号 |
302 | * @return array | 302 | * @return array |
303 | */ | 303 | */ |
304 | - public static function weixinQrcode($orderCode) | 304 | + public static function weixinQrcode($uid, $orderCode) |
305 | { | 305 | { |
306 | 306 | ||
307 | do { | 307 | do { |
@@ -309,7 +309,6 @@ class PaymentModel | @@ -309,7 +309,6 @@ class PaymentModel | ||
309 | self::$code['message'] = '订单号不能为空'; | 309 | self::$code['message'] = '订单号不能为空'; |
310 | break; | 310 | break; |
311 | } | 311 | } |
312 | - $uid = self::getUid($orderCode); | ||
313 | /* 判断订单信息是否存在 */ | 312 | /* 判断订单信息是否存在 */ |
314 | $orderDetail = OrderData::getOrderDetail($uid, $orderCode); | 313 | $orderDetail = OrderData::getOrderDetail($uid, $orderCode); |
315 | 314 |
@@ -16,7 +16,8 @@ class WechatqrcodeController extends WebAction | @@ -16,7 +16,8 @@ class WechatqrcodeController extends WebAction | ||
16 | $this->autoLogin(); | 16 | $this->autoLogin(); |
17 | 17 | ||
18 | $orderCode = $this->get('order_code', $this->get('ordercode')); | 18 | $orderCode = $this->get('order_code', $this->get('ordercode')); |
19 | - $data = PaymentModel::weixinQrcode($orderCode); | 19 | + $uid = $this->getUid(); |
20 | + $data = PaymentModel::weixinQrcode($uid, $orderCode); | ||
20 | if (empty($data['code']) || $data['code'] !== 200) { | 21 | if (empty($data['code']) || $data['code'] !== 200) { |
21 | $this->helpJsRedirect($data['message']); | 22 | $this->helpJsRedirect($data['message']); |
22 | } | 23 | } |
-
Please register or login to post a comment