Browse Source

Wesmiler 人人车 初始化项目 0816

APPLE 3 năm trước cách đây
mục cha
commit
cc7aedb242
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      application/api/controller/v1/Wechat.php

+ 2 - 2
application/api/controller/v1/Wechat.php

@@ -511,7 +511,7 @@ class Wechat extends ApiController
                             case "level":
                                 $tplTitle = "人人接 - 司机付费升级";
                                 // 订单
-                                $order = UserPaymentOrder::where(['id' => $orderId])->lock(true)->find();
+                                $order = UserPaymentOrder::where(['id' => $orderId])->find();
                                 if (empty($order)) {
                                     return $fail('订单不存在');
                                 }
@@ -530,7 +530,7 @@ class Wechat extends ApiController
                                 ])) {
                                     return $fail('升级订单处理失败');
                                 }
-
+app()->log(json_encode($order, 256),'dd');
                                 if (!TaxiUser::where(['user_id' => $order['user_id']])->update(['level' => $levelData['level']])) {
                                     return $fail('司机等级更新失败');
                                 }