测试:bug处理
This commit is contained in:
@@ -173,7 +173,7 @@ class GiveGift extends adminApi
|
||||
if (!empty($gift_ids_list)) {
|
||||
$gift_list = db::name('vs_gift')
|
||||
->where('gid', 'in', array_unique($gift_ids_list))
|
||||
->field('gid,gift_name,gift_price')
|
||||
->field('gid,gift_name,gift_price,type,label')
|
||||
->select();
|
||||
foreach ($gift_list as $gift) {
|
||||
$gifts[$gift['gid']] = $gift;
|
||||
@@ -206,8 +206,11 @@ class GiveGift extends adminApi
|
||||
// 礼物信息
|
||||
$gift_info = isset($gifts[$value['gift_id']]) ? $gifts[$value['gift_id']] : null;
|
||||
$value['gift_name'] = $gift_info ? $gift_info['gift_name'].'-'.$value['gift_id'] : '';
|
||||
$value['gift_price'] = $gift_info ? $gift_info['gift_price'] : 0;
|
||||
|
||||
if($gift_info && $gift_info['label']==2){
|
||||
$value['gift_price'] ="未知(盲盒)";
|
||||
}else{
|
||||
$value['gift_price'] = $gift_info ? $gift_info['gift_price'] : 0;
|
||||
}
|
||||
// 房间信息处理
|
||||
if($value['from'] == 1){
|
||||
$value['room'] = '聊天送礼';
|
||||
|
||||
Reference in New Issue
Block a user