فهرست منبع

wesmiler 抢表商城

APPLE 3 سال پیش
والد
کامیت
75767831f5
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      app/Services/Common/TradeService.php

+ 1 - 1
app/Services/Common/TradeService.php

@@ -488,7 +488,7 @@ class TradeService extends BaseService
             return round($data, 2);
         }
 
-        $where = ['a.profit' => $userId, 'a.mark' => 1,'b.status'=>1];
+        $where = ['a.user_id' => $userId, 'a.mark' => 1,'b.status'=>1];
         $data = $this->model->from('trade as a')
             ->leftJoin('member as b', 'b.id', '=', 'a.user_id')
             ->where($where)