|
@@ -1542,8 +1542,9 @@ class WebsiteService implements WebsiteServiceInterface
|
|
|
// 打乱字符串顺序并截取前四位
|
|
|
// $randss = substr(str_shuffle($letters), 0, 4);
|
|
|
if ($data['alias_pinyin'] == '') {
|
|
|
- $data['aLIas_pinyin'] = $aLIas_pinyin;
|
|
|
}
|
|
|
+ $data['aLIas_pinyin'] = $aLIas_pinyin;
|
|
|
+
|
|
|
$result = WebsiteCategory::where($where)->update($data);
|
|
|
if ($result) {
|
|
|
return Result::success($result);
|
|
@@ -3110,22 +3111,21 @@ class WebsiteService implements WebsiteServiceInterface
|
|
|
];
|
|
|
$website_template = WebsiteTemplate::where($where)->first();
|
|
|
unset($data['website_id']);
|
|
|
- if($data['status'] == 2){
|
|
|
+ if ($data['status'] == 2) {
|
|
|
$template_status = 6;
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
$template_status = 1;
|
|
|
-
|
|
|
}
|
|
|
if (empty($website_template)) {
|
|
|
return Result::error("网站预制模板获取失败", 0);
|
|
|
} else {
|
|
|
Db::beginTransaction();
|
|
|
try {
|
|
|
- $result['website_template'] = WebsiteTemplate::where($where)->update(['status'=>$template_status]);
|
|
|
+ $result['website_template'] = WebsiteTemplate::where($where)->update(['status' => $template_status]);
|
|
|
if (empty($result['website_template'])) {
|
|
|
return Result::error("修改网站模板状态失败", 0);
|
|
|
}
|
|
|
- $result['website_template_info'] = WebsiteTemplateInfo::where($where)->update(['status'=>$data['status']]);
|
|
|
+ $result['website_template_info'] = WebsiteTemplateInfo::where($where)->update(['status' => $data['status']]);
|
|
|
if (empty($result['website_template_info'])) {
|
|
|
return Result::error("修改网站基础信息状态失败", 0);
|
|
|
}
|