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