/**
  * 店铺属性更新接口
  * @param int $id		店铺ID
  * @param array $vals	属性值id数组
  */
 public function attrUpdate($id, $vals = array())
 {
     $id = (int) $id;
     if ($id <= 0) {
         $this->error('店铺非法');
     }
     if (!is_array($vals)) {
         $this->error('属性非法');
     }
     $model = new StoreAttrModel();
     if (false === $model->update($id, $vals)) {
         $this->error($model->getError());
     }
     $this->success('更新成功');
 }