签约房-装扮-降身卡功能开发-h5调整

This commit is contained in:
2025-11-26 10:22:57 +08:00
parent 82a078cae1
commit 5f71a0df80

View File

@@ -103,6 +103,10 @@ class Decorate extends Model
return ['code' => 0, 'msg' => '参数错误'];
}
if($decorate['type'] == 12){
$result['title'] = $decorate['title'];
$result['price'] = (int)$decorate['price'];
$result['base_image'] = localpath_to_netpath($decorate['base_image']);
}else{
$decorate_price = DB::name('vs_decorate_price')->where(['did' => $did, 'is_delete' => 1])->order('day asc')->select();
if (!$decorate_price) {
return ['code' => 0, 'msg' => '参数错误'];
@@ -117,10 +121,6 @@ class Decorate extends Model
//有效期至
$result['price_list'][$k]['end_time'] = date('Y-m-d',strtotime("+".$v['day']." day"));
}
}else{
$result['title'] = $decorate['title'];
$result['price'] = (int)$decorate['price'];
$result['base_image'] = localpath_to_netpath($decorate['base_image']);
}
return ['code' => 1, 'msg' => '获取成功', 'data' => $result];
}