gq 7 years ago
parent
commit
4a4004c2e2
1 changed files with 3 additions and 2 deletions
  1. 3 2
      server/app/Http/Controllers/Api/V1/MyController.php

+ 3 - 2
server/app/Http/Controllers/Api/V1/MyController.php

xqd xqd
@@ -260,7 +260,7 @@ class MyController extends Controller
         $user = $this->getUser();
         $data1  =  SystemInfoModel::where('to_user_id',$user->id)->where('type_id',1)->where('attr_id',1)->orderBy('id','desc')->get()->toArray();
         $new_data1 = [] ;
-        if (count($data1) > 0) {
+       /* if (count($data1) > 0) {
             if (count($data1) >= 5) {
                 $data1[0]['message'] = "已经有".count($data1)."个人支持了你的梦想!";
                 $data2[0]['is_url'] = 1;
@@ -269,7 +269,8 @@ class MyController extends Controller
             }else{
                 $new_data1 = $data1;
             }
-        }
+        }*/
+        $new_data1 = $data1;
         $data2  =  SystemInfoModel::where('to_user_id',$user->id)->where('type_id',1)->where('attr_id',2)->orderBy('id','desc')->get()->toArray();
         $new_data2 = [] ;
         if (count($data2) > 0) {