|
@@ -98,6 +98,12 @@ class Useraudit extends Backend
|
|
|
'audio_bio' => '语音',
|
|
|
'video_bio' => '视频',
|
|
|
];
|
|
|
+ $task_arr = [
|
|
|
+ 'photo_images' => 2,
|
|
|
+ 'avatar' => 1,
|
|
|
+ 'audio_bio' => 0,
|
|
|
+ 'video_bio' => 3,
|
|
|
+ ];
|
|
|
$type_text = isset($type_arr[$info['type']]) ? $type_arr[$info['type']] : '资料';
|
|
|
|
|
|
if($status == 1){
|
|
@@ -110,6 +116,12 @@ class Useraudit extends Backend
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ //任务完成
|
|
|
+ $task_num = $task_arr[$info['type']];
|
|
|
+ if($task_num != 0){
|
|
|
+ $task_rs = \app\common\model\TaskLog::tofinish($info['user_id'],$task_num);
|
|
|
+ }
|
|
|
+
|
|
|
//系统消息
|
|
|
$msg_id = \app\common\model\Message::addMessage($info['user_id'],$type_text.'审核',$type_text.'审核已经通过');
|
|
|
}elseif($status == 2){
|