|
@@ -644,7 +644,7 @@ class OrderService extends BaseService
|
|
|
if ($platform == "applet")
|
|
if ($platform == "applet")
|
|
|
$openid = $user["applet_openid"];
|
|
$openid = $user["applet_openid"];
|
|
|
if ($payment_type === \E_ORDER_PAY_TYPE::Wechat) {
|
|
if ($payment_type === \E_ORDER_PAY_TYPE::Wechat) {
|
|
|
- if (is_null($openid) || mb_strlen($openid) === 0)
|
|
|
|
|
|
|
+ if ($platform != "app" && (is_null($openid) || mb_strlen($openid) === 0))
|
|
|
return $this->fail("请先绑定微信再进行支付", 101);
|
|
return $this->fail("请先绑定微信再进行支付", 101);
|
|
|
}
|
|
}
|
|
|
$start_time = strtotime($order->service_start_date);
|
|
$start_time = strtotime($order->service_start_date);
|
|
@@ -688,7 +688,7 @@ class OrderService extends BaseService
|
|
|
default:
|
|
default:
|
|
|
$res = $this->walletService->payBalance($order);
|
|
$res = $this->walletService->payBalance($order);
|
|
|
}
|
|
}
|
|
|
- (new CallbackService())->payOrderSuccess($order["no"]);
|
|
|
|
|
|
|
+ (new CallbackService())->payOrderSuccess($order["no"]);
|
|
|
return $res;
|
|
return $res;
|
|
|
} catch (Exception $e) {
|
|
} catch (Exception $e) {
|
|
|
return $this->fail($e->getMessage());
|
|
return $this->fail($e->getMessage());
|