|
@@ -106,6 +106,17 @@ class Level extends Controller
|
|
|
if($this->request->isGet()) {
|
|
|
$this->price = !empty($data['price']) ? json_decode($data['price'],true):[];
|
|
|
}
|
|
|
+ if($this->request->isPost())
|
|
|
+ {
|
|
|
+ $title_arr= input('post.title');
|
|
|
+ $time_arr= input('post.time');
|
|
|
+ $price_arr= input('post.price');
|
|
|
+ $price_param = [];
|
|
|
+ foreach ($title_arr as $k=>$t){
|
|
|
+ $param_post[] = ['title'=>$t,'value'=>intval($time_arr[$k]),'price'=>bcadd($price_arr[$k],0,2)];
|
|
|
+ }
|
|
|
+ $data['price'] = json_encode($price_param);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
}
|