|
|
@@ -103,7 +103,7 @@ class TradeService extends BaseService
|
|
|
*/
|
|
|
public function getNewTradeCountByStatus($userId, $status=0, $time=30)
|
|
|
{
|
|
|
- $where = ['user_id'=>$userId,'mark'=>1,'is_read'=>1];
|
|
|
+ $where = ['user_id'=>$userId,'mark'=>1,'is_read'=>0];
|
|
|
return $this->model->where($where)
|
|
|
->where(function($query) use($status){
|
|
|
$query->whereIn('status',is_array($status)? $status:[$status]);
|