WIN-2308041133\Administrator 5 months ago
parent
commit
a899fd8ff2
1 changed files with 5 additions and 5 deletions
  1. 5 5
      application/api/controller/Pay.php

+ 5 - 5
application/api/controller/Pay.php

@@ -874,7 +874,7 @@ class Pay extends Api
             $after = $user->money - $money;
             $after = $user->money - $money;
             if ($data['type'] == 1) {
             if ($data['type'] == 1) {
                 Db::startTrans();
                 Db::startTrans();
-                try {
+//                try {
                     //更新会员信息
                     //更新会员信息
                     $user->save(['money' => $after]);
                     $user->save(['money' => $after]);
                     //写入日志
                     //写入日志
@@ -909,10 +909,10 @@ class Pay extends Api
 
 
                     Db::commit();
                     Db::commit();
                     $this->success(__('操作成功'));
                     $this->success(__('操作成功'));
-                } catch (Exception $e) {
-                    Db::rollback();
-                    $this->error($e->getMessage());
-                }
+//                } catch (Exception $e) {
+//                    Db::rollback();
+//                    $this->error($e->getMessage());
+//                }
             } else if ($data['type'] > 1) {
             } else if ($data['type'] > 1) {
                 $this->error(__('已经支付'));
                 $this->error(__('已经支付'));
             }
             }