|
...
|
...
|
@@ -28,11 +28,11 @@ class ProjectAssociation extends Model |
|
|
|
# AICC朋友昵称
|
|
|
|
$isRes->nickname = $data['nickname'] ?? 0;
|
|
|
|
# AICC用户ID
|
|
|
|
$isRes->user_id = $data['user_id'] ?? 0;
|
|
|
|
$isRes->user_id = $data['user_id'] ?? 0;
|
|
|
|
# AICC用户姓名
|
|
|
|
$isRes->user_name = $data['user_name'] ?? '';
|
|
|
|
# AICC朋友头像
|
|
|
|
$isRes->image = $data['image'] ?? '';
|
|
|
|
$isRes->image = $data['image'] ?? '';
|
|
|
|
return $isRes->save();
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -55,9 +55,9 @@ class ProjectAssociation extends Model |
|
|
|
{
|
|
|
|
$status = 1; # 1 - 正常, 0 - 禁用
|
|
|
|
$lists = self::query()->where('status', $status)
|
|
|
|
->whereNotNull('project_id')
|
|
|
|
->whereNotNull('friend_id')
|
|
|
|
->whereNotNull('user_id')
|
|
|
|
->where('project_id', '!=', 0)
|
|
|
|
->where('friend_id', '!=', 0)
|
|
|
|
->where('user_id', '!=', 0)
|
|
|
|
->paginate($perPage, ['project_id', 'friend_id', 'user_id'], 'page', $page);
|
|
|
|
$items = $lists->Items();
|
|
|
|
$totalPage = $lists->lastPage();
|
...
|
...
|
|