|
|
@@ -54,6 +54,7 @@ class ShowTemplate extends BaseController{
|
|
|
['imgs',[]],
|
|
|
['is_hot','0'],
|
|
|
['is_recommend','0'],
|
|
|
+ ['is_init','0'],
|
|
|
['code','','empty','请输入CODE'],
|
|
|
['status','0'],
|
|
|
['unreal_sales','0'],
|
|
|
@@ -62,10 +63,11 @@ class ShowTemplate extends BaseController{
|
|
|
$save["title"] = $post["title"];
|
|
|
$save["price"] = floatval($post["price"]);
|
|
|
$save["old_price"] = floatval($post["old_price"]);
|
|
|
- $save["status"] = (int)$post["status"]==1?1:0;
|
|
|
+ $save["status"] = (int)$post["status"] == 1 ? 1 : 0;
|
|
|
$save["imgs"] = empty($post["imgs"]) ? "" : implode(",", $post["imgs"]);
|
|
|
- $save["is_hot"] = (int)$post["is_hot"]==1?1:0;
|
|
|
- $save["is_recommend"] = (int)$post["is_recommend"]==1?1:0;
|
|
|
+ $save["is_hot"] = (int)$post["is_hot"] == 1 ? 1 : 0;
|
|
|
+ $save["is_recommend"] = (int)$post["is_recommend"]== 1 ? 1 : 0;
|
|
|
+ $save["is_init"] = (int)$post["is_init"] == 1 ? 1 : 0;
|
|
|
$save["code"] = $post["code"];
|
|
|
$save["unreal_sales"] = (int)$post["unreal_sales"];
|
|
|
$save["admin_time"] = time();
|