cp 等级升级 装扮挂件和特效修改
This commit is contained in:
@@ -248,6 +248,7 @@ class UserCp extends Model
|
|||||||
|
|
||||||
//添加一个记录
|
//添加一个记录
|
||||||
$pendant = db::name('vs_decorate_price')->where('id',$level['pendant_id'])->field('did,day')->find();
|
$pendant = db::name('vs_decorate_price')->where('id',$level['pendant_id'])->field('did,day')->find();
|
||||||
|
if($pendant){
|
||||||
$pendant_title = '装扮-'.$pendant['day'].'天-'.db::name('vs_decorate')->where('did',$pendant['did'])->value('title');
|
$pendant_title = '装扮-'.$pendant['day'].'天-'.db::name('vs_decorate')->where('did',$pendant['did'])->value('title');
|
||||||
$datas = [
|
$datas = [
|
||||||
'room_id' => $room_id,
|
'room_id' => $room_id,
|
||||||
@@ -263,6 +264,8 @@ class UserCp extends Model
|
|||||||
];
|
];
|
||||||
Db::name('user_cp_gift_log')->insert($datas);
|
Db::name('user_cp_gift_log')->insert($datas);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
$data['exp'] = $yuan_exp + $exp;
|
$data['exp'] = $yuan_exp + $exp;
|
||||||
Db::name('user_cp_zone')->where(['id' => $cp_zone_id])->update($data);
|
Db::name('user_cp_zone')->where(['id' => $cp_zone_id])->update($data);
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user