|
@@ -157,8 +157,8 @@ class MixedPayService extends BasePayService
|
|
|
"[" . date('Y-m-d H:i:s') . "] 开始创建微信支付订单参数: " .json_encode($wechatOrder). PHP_EOL,
|
|
"[" . date('Y-m-d H:i:s') . "] 开始创建微信支付订单参数: " .json_encode($wechatOrder). PHP_EOL,
|
|
|
FILE_APPEND | LOCK_EX
|
|
FILE_APPEND | LOCK_EX
|
|
|
);
|
|
);
|
|
|
- Db::commit();
|
|
|
|
|
- return $wechatOrder;
|
|
|
|
|
|
|
+// Db::commit();
|
|
|
|
|
+// return $wechatOrder;
|
|
|
$result = $this->wechatPayService->pay($from, $wechatOrder);
|
|
$result = $this->wechatPayService->pay($from, $wechatOrder);
|
|
|
if ($result === false) {
|
|
if ($result === false) {
|
|
|
throw new \Exception('微信支付创建失败:' . $this->wechatPayService->getError());
|
|
throw new \Exception('微信支付创建失败:' . $this->wechatPayService->getError());
|