签约房-装扮-降身卡功能开发-h5调整
This commit is contained in:
@@ -103,6 +103,10 @@ class Decorate extends Model
|
|||||||
return ['code' => 0, 'msg' => '参数错误'];
|
return ['code' => 0, 'msg' => '参数错误'];
|
||||||
}
|
}
|
||||||
if($decorate['type'] == 12){
|
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();
|
$decorate_price = DB::name('vs_decorate_price')->where(['did' => $did, 'is_delete' => 1])->order('day asc')->select();
|
||||||
if (!$decorate_price) {
|
if (!$decorate_price) {
|
||||||
return ['code' => 0, 'msg' => '参数错误'];
|
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"));
|
$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];
|
return ['code' => 1, 'msg' => '获取成功', 'data' => $result];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user