|
|
@@ -36,8 +36,8 @@ class Product extends Backend |
|
|
|
{ |
|
|
|
parent::_initialize(); |
|
|
|
$this->model = new \app\admin\model\unishop\Product; |
|
|
|
$servers = \app\admin\model\unishop\Config::getByName('server'); |
|
|
|
$this->assign('servers',json_decode($servers['value'])); |
|
|
|
// $servers = \app\admin\model\unishop\Config::getByName('server'); |
|
|
|
// $this->assign('servers',json_decode($servers['value'])); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@@ -70,7 +70,7 @@ class Product extends Backend |
|
|
|
throw new Exception('规格不能为空'); |
|
|
|
} |
|
|
|
} |
|
|
|
$params['server'] = implode(',',$params['server']); |
|
|
|
// $params['server'] = implode(',',$params['server']); |
|
|
|
|
|
|
|
$result = $this->model->allowField(true)->save($params); |
|
|
|
Db::commit(); |
|
|
@@ -177,7 +177,7 @@ class Product extends Backend |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$params['server'] = implode(',',$params['server']); |
|
|
|
// $params['server'] = implode(',',$params['server']); |
|
|
|
$result = $row->allowField(true)->save($params); |
|
|
|
Db::commit(); |
|
|
|
} catch (ValidateException $e) { |
|
|
@@ -276,7 +276,7 @@ class Product extends Backend |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
$params['server'] = implode(',',$params['server']); |
|
|
|
// $params['server'] = implode(',',$params['server']); |
|
|
|
$result = $this->model->allowField(true)->save($params); |
|
|
|
Db::commit(); |
|
|
|
} catch (ValidateException $e) { |
|
|
|