소스 검색

交易记录

lyh 2 년 전
부모
커밋
9d2938e6e3
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/Services/Api/AcceptorService.php

+ 2 - 2
app/Services/Api/AcceptorService.php

@@ -1186,8 +1186,8 @@ class AcceptorService extends BaseService
         }
 
         // 扣除用户金豆
-        $updateData = ['quota' => DB::raw("quota - {$params['quota']}"), 'update_time' => time()];
-        if (!$this->model->where(['id' => $userId])->update($updateData)) {
+        $updateData = ['balance' => DB::raw("balance - {$params['quota']}"), 'update_time' => time()];
+        if (!MemberModel::where(['id' => $userId])->update($updateData)) {
             $this->error = 2036;
             DB::rollBack();
             return false;