Prechádzať zdrojové kódy

wesmiler 抢表商城

APPLE 3 rokov pred
rodič
commit
9f4369b115

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

@@ -69,7 +69,7 @@ class OrderService extends BaseService
      */
      */
     public function getNewTradeCount($userId, $status=0, $time=30)
     public function getNewTradeCount($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)
         return $this->model->where($where)
             ->where(function($query) use($status){
             ->where(function($query) use($status){
                 $query->whereIn('status',is_array($status)? $status:[$status]);
                 $query->whereIn('status',is_array($status)? $status:[$status]);

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

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