WIN-2308041133\Administrator 6 meses atrás
pai
commit
e8df8def65
1 arquivos alterados com 5 adições e 5 exclusões
  1. 5 5
      application/api/controller/Pay.php

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

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