|
@@ -33,7 +33,7 @@ class Goldprice extends BaseController
|
|
|
}
|
|
|
|
|
|
public function create(){
|
|
|
- $type = isset($this->post['type']) && $this->post['type'] !=="" ?trim($this->post['type']):"";
|
|
|
+ $type = isset($this->post['type']) && $this->post['type'] !=="" ?intval($this->post['type']):"";
|
|
|
if($type==""){
|
|
|
return error_show(1002,"参数type不能为空");
|
|
|
}
|