功能更新,bug修复

This commit is contained in:
2016-06-29 15:01:55 +08:00
parent 6f1790bc3b
commit c8e979b159
14 changed files with 277 additions and 128 deletions

View File

@@ -46,8 +46,7 @@ class Attribute extends Admin {
* index方法
* @author colin <colin@tensent.cn>
*/
public function index($model = null){
$model_id = input('get.model_id','','trim,intval');
public function index($model_id = null){
$map['model_id'] = $model_id;
if (!$model_id) {
return $this->error("非法操作!");