测试:-歌手认证成功后,需要推送消息提醒用户已认证成功 (32)

This commit is contained in:
2025-12-02 16:46:53 +08:00
parent 3ad2731dba
commit abf611d725
2 changed files with 20 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ namespace app\adminapi\controller;
use app\common\controller\adminApi;
use think\Db;
use think\Session;
class SingerSong extends adminApi
{
@@ -68,6 +69,24 @@ class SingerSong extends adminApi
];
$res = db::name('vs_singer')->where('id', $id)->update($data);
if($res){
//推送消息-歌手认真成功
//发系统信息
if($data['status'] ==1){
$deal_content = '审核通过';
}elseif($data['status'] ==2){
$deal_content = '审核拒绝';
}
if(!empty($remark)){
$deal_content .= ',原因:'.$data['remark'];
}
db::name('system_message')->insert([
'title' => '房间审核结果',
'content' => '您的歌手认证申请 '.$deal_content,
'type' => 1,
'admin_id' => Session::get('admin_id'),
'receiving_id' => db::name('vs_singer')->where('id', $id)->value('user_id'),
'createtime' => time(),
]);
return V(1, '操作成功');
}else{
return V(0, '操作失败');