作者 刘锟

Merge remote-tracking branch 'origin/master' into akun

@@ -127,7 +127,7 @@ class RemainDay extends Command @@ -127,7 +127,7 @@ class RemainDay extends Command
127 //按自然日统计 127 //按自然日统计
128 $diff = time() - strtotime($item['uptime']); 128 $diff = time() - strtotime($item['uptime']);
129 $compliance_day = floor($diff / (60 * 60 * 24)); 129 $compliance_day = floor($diff / (60 * 60 * 24));
130 - $seo_remain_day = $deploy_build['service_duration'] - $compliance_day; 130 + $seo_remain_day = $deploy_build['seo_service_duration'] - $compliance_day;
131 } 131 }
132 if($deploy_build['plan'] == 0 && $seo_remain_day < 0 && $deploy_build['seo_service_duration'] != 0){//只有白帽版本的项目且剩余服务时常为0,放入未续费中 132 if($deploy_build['plan'] == 0 && $seo_remain_day < 0 && $deploy_build['seo_service_duration'] != 0){//只有白帽版本的项目且剩余服务时常为0,放入未续费中
133 // $this->project->edit(['seo_remain_day'=>$seo_remain_day,'finish_remain_day'=>$compliance_day ?? 0,'extend_type'=>Project::TYPE_FIVE],['id'=>$item['id']]); 133 // $this->project->edit(['seo_remain_day'=>$seo_remain_day,'finish_remain_day'=>$compliance_day ?? 0,'extend_type'=>Project::TYPE_FIVE],['id'=>$item['id']]);
@@ -61,11 +61,11 @@ class ComController extends BaseController @@ -61,11 +61,11 @@ class ComController extends BaseController
61 $data = []; 61 $data = [];
62 $is_ai_blog = $this->getIsAiBlog(); 62 $is_ai_blog = $this->getIsAiBlog();
63 if($is_ai_blog != 1){ 63 if($is_ai_blog != 1){
64 - $data[] = 57; 64 + $data[] = 6;
65 } 65 }
66 $is_ai_video = $this->getIsAiVideo(); 66 $is_ai_video = $this->getIsAiVideo();
67 if($is_ai_video != 1){ 67 if($is_ai_video != 1){
68 - $data[] = 74; 68 + $data[] = 27;
69 } 69 }
70 if($this->user['login_source'] == User::LOGIN_PASSWORD_SOURCE){ 70 if($this->user['login_source'] == User::LOGIN_PASSWORD_SOURCE){
71 $data[] = 19; 71 $data[] = 19;
@@ -287,7 +287,6 @@ class InquiryController extends BaseController @@ -287,7 +287,6 @@ class InquiryController extends BaseController
287 throw new \Exception('文件生成失败,请重试'); 287 throw new \Exception('文件生成失败,请重试');
288 } 288 }
289 $fileurl = Storage::disk('runtime')->url($file); 289 $fileurl = Storage::disk('runtime')->url($file);
290 -// return Storage::disk('runtime')->download($file); //直接下载  
291 $this->response('success',Code::SUCCESS,['url' => $fileurl]); 290 $this->response('success',Code::SUCCESS,['url' => $fileurl]);
292 } 291 }
293 292
@@ -51,7 +51,7 @@ class AuthorityScoreLogic extends BaseLogic @@ -51,7 +51,7 @@ class AuthorityScoreLogic extends BaseLogic
51 //当月ai_blog发布数量及链接 51 //当月ai_blog发布数量及链接
52 $aiBlogModel = new AiBlog(); 52 $aiBlogModel = new AiBlog();
53 $data['ai_blog']['count'] = $aiBlogModel->counts(['created_at'=>['between',[$startTime,$endTime]]]); 53 $data['ai_blog']['count'] = $aiBlogModel->counts(['created_at'=>['between',[$startTime,$endTime]]]);
54 - $aiRouteArr = $aiBlogModel->selectField(['created_at'=>['between',[$startTime,$endTime]]],'route'); 54 + $aiRouteArr = $aiBlogModel->selectField(['created_at'=>['between',[$startTime,$endTime]],'route'=>['!=',null]],'route');
55 if(!empty($aiRouteArr)){ 55 if(!empty($aiRouteArr)){
56 foreach ($aiRouteArr as $k => $item){ 56 foreach ($aiRouteArr as $k => $item){
57 $aiRouteArr[$k] = $this->user['domain'] . 'blog/' . $item; 57 $aiRouteArr[$k] = $this->user['domain'] . 'blog/' . $item;
@@ -61,7 +61,7 @@ class AuthorityScoreLogic extends BaseLogic @@ -61,7 +61,7 @@ class AuthorityScoreLogic extends BaseLogic
61 //当月ai_video发布数量及链接 61 //当月ai_video发布数量及链接
62 $aiVideoModel = new AiVideo(); 62 $aiVideoModel = new AiVideo();
63 $data['ai_video']['count'] =$aiVideoModel->counts(['created_at'=>['between',[$startTime,$endTime]]]); 63 $data['ai_video']['count'] =$aiVideoModel->counts(['created_at'=>['between',[$startTime,$endTime]]]);
64 - $aiVideoRouteArr = $aiVideoModel->selectField(['created_at'=>['between',[$startTime,$endTime]]],'route'); 64 + $aiVideoRouteArr = $aiVideoModel->selectField(['created_at'=>['between',[$startTime,$endTime]],'route'=>['!=',null]],'route');
65 if(!empty($aiVideoRouteArr)){ 65 if(!empty($aiVideoRouteArr)){
66 foreach ($aiVideoRouteArr as $kVideo => $itemVideo){ 66 foreach ($aiVideoRouteArr as $kVideo => $itemVideo){
67 $aiVideoRouteArr[$kVideo] = $this->user['domain'] . 'video/' . $itemVideo; 67 $aiVideoRouteArr[$kVideo] = $this->user['domain'] . 'video/' . $itemVideo;
@@ -116,7 +116,7 @@ class BTemplateLogic extends BaseLogic @@ -116,7 +116,7 @@ class BTemplateLogic extends BaseLogic
116 $bTemplateComModel = new BTemplateCom(); 116 $bTemplateComModel = new BTemplateCom();
117 $otherInfo = $bTemplateComModel->read(['source'=>$headComInfo['source'],'common_type'=>BTemplate::COMMON_OTHER,'is_list'=>$headComInfo['is_list'],'is_custom'=>$headComInfo['is_custom'],'template_id'=>$template_id]); 117 $otherInfo = $bTemplateComModel->read(['source'=>$headComInfo['source'],'common_type'=>BTemplate::COMMON_OTHER,'is_list'=>$headComInfo['is_list'],'is_custom'=>$headComInfo['is_custom'],'template_id'=>$template_id]);
118 if($otherInfo === false){ 118 if($otherInfo === false){
119 - $this->fail('获取失败,请联系管理员222'); 119 + $otherInfo = $bTemplateComModel->read(['source'=>99,'common_type'=>BTemplate::COMMON_OTHER,'is_list'=>$headComInfo['is_list'],'is_custom'=>$headComInfo['is_custom'],'template_id'=>$template_id]);
120 } 120 }
121 $footerComInfo = $this->getFooterComHtml($condition,$source,$is_list,$is_custom,$template_id); 121 $footerComInfo = $this->getFooterComHtml($condition,$source,$is_list,$is_custom,$template_id);
122 $data = ['head_html'=>$headComInfo['html'] ?? '', 'head_style'=>$headComInfo['html_style'] ?? '', 'other'=>$otherInfo['html'] ?? '', 122 $data = ['head_html'=>$headComInfo['html'] ?? '', 'head_style'=>$headComInfo['html_style'] ?? '', 'other'=>$otherInfo['html'] ?? '',
@@ -151,6 +151,7 @@ class CategoryLogic extends BaseLogic @@ -151,6 +151,7 @@ class CategoryLogic extends BaseLogic
151 }else{ 151 }else{
152 $param['describe_image'] = json_encode([]); 152 $param['describe_image'] = json_encode([]);
153 } 153 }
  154 + $this->param['image'] = $this->param['image'] ?? '';
154 if(isset($param['cate_tak']) && !empty($param['cate_tak'])){ 155 if(isset($param['cate_tak']) && !empty($param['cate_tak'])){
155 $param['cate_tak'] = json_encode($param['cate_tak']); 156 $param['cate_tak'] = json_encode($param['cate_tak']);
156 }else{ 157 }else{
@@ -80,7 +80,7 @@ class RouteMap extends Base @@ -80,7 +80,7 @@ class RouteMap extends Base
80 if($source == self::SOURCE_PRODUCT){ 80 if($source == self::SOURCE_PRODUCT){
81 $suffix = '-product'; 81 $suffix = '-product';
82 } 82 }
83 - $route_len = 65; 83 +// $route_len = 65;
84 } 84 }
85 $length = strlen($sign); 85 $length = strlen($sign);
86 if($length > $route_len){ 86 if($length > $route_len){