Merge remote-tracking branch 'origin/master' into akun
正在显示
9 个修改的文件
包含
68 行增加
和
32 行删除
| @@ -123,7 +123,7 @@ class postInquiry extends Command | @@ -123,7 +123,7 @@ class postInquiry extends Command | ||
| 123 | 'referrer_url' => $detail['referrer'], | 123 | 'referrer_url' => $detail['referrer'], |
| 124 | 'user_agent' => $detail['user_agent'], | 124 | 'user_agent' => $detail['user_agent'], |
| 125 | ]; | 125 | ]; |
| 126 | - $res = Http::withoutVerifying()->timeout(10)->post($website . 'api/traffic_visit/', $data)->json(); | 126 | + $res = Http::withoutVerifying()->timeout(30)->post($website . 'api/traffic_visit/', $data)->json(); |
| 127 | if (empty($res['status']) || $res['status'] != 200) { | 127 | if (empty($res['status']) || $res['status'] != 200) { |
| 128 | $log->status = ReInquiryDetailLog::STATUS_FAIL; | 128 | $log->status = ReInquiryDetailLog::STATUS_FAIL; |
| 129 | $log->remark = mb_substr($res['message'] ?? '', 0, 200); | 129 | $log->remark = mb_substr($res['message'] ?? '', 0, 200); |
| @@ -219,7 +219,7 @@ class postInquiry extends Command | @@ -219,7 +219,7 @@ class postInquiry extends Command | ||
| 219 | } else { | 219 | } else { |
| 220 | $data['__amp_source_origin'] = trim($website, '/'); | 220 | $data['__amp_source_origin'] = trim($website, '/'); |
| 221 | } | 221 | } |
| 222 | - $res = Http::withoutVerifying()->timeout(10)->withHeaders(['User-Agent' => $detail['user_agent']])->post($website . 'api/inquiryQd?source=5', $data)->json(); | 222 | + $res = Http::withoutVerifying()->timeout(30)->withHeaders(['User-Agent' => $detail['user_agent']])->post($website . 'api/inquiryQd?source=5', $data)->json(); |
| 223 | if (empty($res['code']) || $res['code'] != 200) { | 223 | if (empty($res['code']) || $res['code'] != 200) { |
| 224 | $log->status = ReInquiryDetailLog::STATUS_FAIL; | 224 | $log->status = ReInquiryDetailLog::STATUS_FAIL; |
| 225 | $log->remark = mb_substr($res['message'] ?? '', 0, 200); | 225 | $log->remark = mb_substr($res['message'] ?? '', 0, 200); |
| @@ -243,7 +243,7 @@ class postInquiry extends Command | @@ -243,7 +243,7 @@ class postInquiry extends Command | ||
| 243 | 'source' => 5, | 243 | 'source' => 5, |
| 244 | ]; | 244 | ]; |
| 245 | 245 | ||
| 246 | - $result = Http::withoutVerifying()->timeout(10)->post('https://form.globalso.com/api/external-interface/add/fa043f9cbec6b38f', $data); | 246 | + $result = Http::withoutVerifying()->timeout(30)->post('https://form.globalso.com/api/external-interface/add/fa043f9cbec6b38f', $data); |
| 247 | $res = $result->json(); | 247 | $res = $result->json(); |
| 248 | //兼容接口返回格式 | 248 | //兼容接口返回格式 |
| 249 | if (!empty($res['data'][0]['status'])) { | 249 | if (!empty($res['data'][0]['status'])) { |
| @@ -273,7 +273,7 @@ class postInquiry extends Command | @@ -273,7 +273,7 @@ class postInquiry extends Command | ||
| 273 | ksort($data); | 273 | ksort($data); |
| 274 | $data['token'] = md5( json_encode($data, JSON_UNESCAPED_UNICODE ) . date("Y-m-d")); | 274 | $data['token'] = md5( json_encode($data, JSON_UNESCAPED_UNICODE ) . date("Y-m-d")); |
| 275 | $url = 'https://' . $detail['re_website'] . '/index.php?route=api/ai_inquiry/add'; | 275 | $url = 'https://' . $detail['re_website'] . '/index.php?route=api/ai_inquiry/add'; |
| 276 | - $res = Http::withoutVerifying()->timeout(10)->post($url, $data)->json(); | 276 | + $res = Http::withoutVerifying()->timeout(30)->post($url, $data)->json(); |
| 277 | if (empty($res['code']) || $res['code'] != 200) { | 277 | if (empty($res['code']) || $res['code'] != 200) { |
| 278 | $log->status = ReInquiryDetailLog::STATUS_FAIL; | 278 | $log->status = ReInquiryDetailLog::STATUS_FAIL; |
| 279 | $log->remark = mb_substr($res['message'] ?? '', 0, 200); | 279 | $log->remark = mb_substr($res['message'] ?? '', 0, 200); |
| @@ -292,7 +292,7 @@ class postInquiry extends Command | @@ -292,7 +292,7 @@ class postInquiry extends Command | ||
| 292 | 'post_id' => $log['url'], | 292 | 'post_id' => $log['url'], |
| 293 | 'message' => $detail['message'], | 293 | 'message' => $detail['message'], |
| 294 | ]; | 294 | ]; |
| 295 | - $res = Http::withoutVerifying()->timeout(10)->post('https://fob.ai.cc/api/ad_to_scrm', $data)->json(); | 295 | + $res = Http::withoutVerifying()->timeout(30)->post('https://fob.ai.cc/api/ad_to_scrm', $data)->json(); |
| 296 | if (empty($res['status']) || $res['status'] != 200) { | 296 | if (empty($res['status']) || $res['status'] != 200) { |
| 297 | $log->status = ReInquiryDetailLog::STATUS_FAIL; | 297 | $log->status = ReInquiryDetailLog::STATUS_FAIL; |
| 298 | $log->remark = mb_substr($res['message'] ?? '', 0, 200); | 298 | $log->remark = mb_substr($res['message'] ?? '', 0, 200); |
| @@ -43,7 +43,7 @@ class SendProduct extends Command | @@ -43,7 +43,7 @@ class SendProduct extends Command | ||
| 43 | */ | 43 | */ |
| 44 | public function handle(){ | 44 | public function handle(){ |
| 45 | $projectModel = new Project(); | 45 | $projectModel = new Project(); |
| 46 | - $list = $projectModel->list(['deleted_status'=>0]); | 46 | + $list = $projectModel->list(['delete_status'=>0]); |
| 47 | $data = []; | 47 | $data = []; |
| 48 | foreach ($list as $v){ | 48 | foreach ($list as $v){ |
| 49 | echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL; | 49 | echo date('Y-m-d H:i:s') . 'project_id:'.$v['id'] . PHP_EOL; |
| @@ -56,16 +56,19 @@ class SendProduct extends Command | @@ -56,16 +56,19 @@ class SendProduct extends Command | ||
| 56 | $arr1 = $this->sendProduct(); | 56 | $arr1 = $this->sendProduct(); |
| 57 | $arr2 = $this->sendBlog(); | 57 | $arr2 = $this->sendBlog(); |
| 58 | $arr3 = $this->sendNews(); | 58 | $arr3 = $this->sendNews(); |
| 59 | - $c_url = $domain.'api/update_page/'; | ||
| 60 | - $param = [ | ||
| 61 | - 'project_id' => $this->user['project_id'], | ||
| 62 | - 'type' => 1, | ||
| 63 | - 'route' => 3, | ||
| 64 | - 'url' => array_merge($arr1,$arr2,$arr3), | ||
| 65 | - 'language'=> [], | ||
| 66 | - 'is_sitemap' => 0 | ||
| 67 | - ]; | ||
| 68 | - http_post($c_url, json_encode($param)); | 59 | + $url = array_merge((array)$arr1,(array)$arr2,(array)$arr3); |
| 60 | + if(!empty($url)){ | ||
| 61 | + $c_url = $domain.'api/update_page/'; | ||
| 62 | + $param = [ | ||
| 63 | + 'project_id' => $v['id'], | ||
| 64 | + 'type' => 1, | ||
| 65 | + 'route' => 3, | ||
| 66 | + 'url' => $url, | ||
| 67 | + 'language'=> [], | ||
| 68 | + 'is_sitemap' => 0 | ||
| 69 | + ]; | ||
| 70 | + http_post($c_url, json_encode($param)); | ||
| 71 | + } | ||
| 69 | //TODO::通知C端生成界面 | 72 | //TODO::通知C端生成界面 |
| 70 | DB::disconnect('custom_mysql'); | 73 | DB::disconnect('custom_mysql'); |
| 71 | } | 74 | } |
| @@ -80,10 +83,10 @@ class SendProduct extends Command | @@ -80,10 +83,10 @@ class SendProduct extends Command | ||
| 80 | * @time :2024/8/30 14:44 | 83 | * @time :2024/8/30 14:44 |
| 81 | */ | 84 | */ |
| 82 | public function sendProduct(){ | 85 | public function sendProduct(){ |
| 83 | - $start_date = date('Y-m-d H:i:s'); | 86 | + $start_date = date('Y-m-d 00:00:00'); |
| 84 | $end_date = date('Y-m-d 23:59:59'); | 87 | $end_date = date('Y-m-d 23:59:59'); |
| 85 | $productModel = new Product(); | 88 | $productModel = new Product(); |
| 86 | - $arr = $productModel->formatQuery(['send_time'=>['between',[$start_date,$end_date]],'status'=>3])->pluck('route'); | 89 | + $arr = $productModel->formatQuery(['send_time'=>['between',[$start_date,$end_date]],'status'=>3])->pluck('route')->toArray(); |
| 87 | $productModel->edit(['status'=>1],['send_time'=>['between',[$start_date,$end_date]],'status'=>3]); | 90 | $productModel->edit(['status'=>1],['send_time'=>['between',[$start_date,$end_date]],'status'=>3]); |
| 88 | return $arr; | 91 | return $arr; |
| 89 | } | 92 | } |
| @@ -96,10 +99,10 @@ class SendProduct extends Command | @@ -96,10 +99,10 @@ class SendProduct extends Command | ||
| 96 | * @time :2024/8/30 15:19 | 99 | * @time :2024/8/30 15:19 |
| 97 | */ | 100 | */ |
| 98 | public function sendBlog(){ | 101 | public function sendBlog(){ |
| 99 | - $start_date = date('Y-m-d H:i:s'); | 102 | + $start_date = date('Y-m-d 00:00:00'); |
| 100 | $end_date = date('Y-m-d 23:59:59'); | 103 | $end_date = date('Y-m-d 23:59:59'); |
| 101 | $blogModel = new Blog(); | 104 | $blogModel = new Blog(); |
| 102 | - $arr = $blogModel->formatQuery(['release_at'=>['between',[$start_date,$end_date]],'status'=>3])->pluck('url'); | 105 | + $arr = $blogModel->formatQuery(['release_at'=>['between',[$start_date,$end_date]],'status'=>3])->pluck('url')->toArray(); |
| 103 | $blogModel->edit(['status'=>1],['release_at'=>['between',[$start_date,$end_date]],'status'=>3]); | 106 | $blogModel->edit(['status'=>1],['release_at'=>['between',[$start_date,$end_date]],'status'=>3]); |
| 104 | return $arr; | 107 | return $arr; |
| 105 | } | 108 | } |
| @@ -112,10 +115,10 @@ class SendProduct extends Command | @@ -112,10 +115,10 @@ class SendProduct extends Command | ||
| 112 | * @time :2024/8/30 15:19 | 115 | * @time :2024/8/30 15:19 |
| 113 | */ | 116 | */ |
| 114 | public function sendNews(){ | 117 | public function sendNews(){ |
| 115 | - $start_date = date('Y-m-d H:i:s'); | 118 | + $start_date = date('Y-m-d 00:00:00'); |
| 116 | $end_date = date('Y-m-d 23:59:59'); | 119 | $end_date = date('Y-m-d 23:59:59'); |
| 117 | $newsModel = new News(); | 120 | $newsModel = new News(); |
| 118 | - $arr = $newsModel->formatQuery(['release_at'=>['between',[$start_date,$end_date]],'status'=>3])->pluck('url'); | 121 | + $arr = $newsModel->formatQuery(['release_at'=>['between',[$start_date,$end_date]],'status'=>3])->pluck('url')->toArray(); |
| 119 | $newsModel->edit(['status'=>1],['release_at'=>['between',[$start_date,$end_date]],'status'=>3]); | 122 | $newsModel->edit(['status'=>1],['release_at'=>['between',[$start_date,$end_date]],'status'=>3]); |
| 120 | return $arr; | 123 | return $arr; |
| 121 | } | 124 | } |
| @@ -42,11 +42,11 @@ class CopyProject extends Command | @@ -42,11 +42,11 @@ class CopyProject extends Command | ||
| 42 | 42 | ||
| 43 | public function handle() | 43 | public function handle() |
| 44 | { | 44 | { |
| 45 | - $projectModel = new Project(); | ||
| 46 | while (true) { | 45 | while (true) { |
| 46 | + $projectModel = new Project(); | ||
| 47 | $list = NoticeLog::where('type', NoticeLog::TYPE_COPY_PROJECT)->where('status', NoticeLog::STATUS_PENDING)->get(); | 47 | $list = NoticeLog::where('type', NoticeLog::TYPE_COPY_PROJECT)->where('status', NoticeLog::STATUS_PENDING)->get(); |
| 48 | if(empty($list)){ | 48 | if(empty($list)){ |
| 49 | - sleep(5); | 49 | + sleep(30); |
| 50 | continue; | 50 | continue; |
| 51 | } | 51 | } |
| 52 | foreach ($list as $item){ | 52 | foreach ($list as $item){ |
| @@ -65,6 +65,8 @@ class SendAutoEmail extends Command | @@ -65,6 +65,8 @@ class SendAutoEmail extends Command | ||
| 65 | Config::set('mail.mailers.smtp.password', $smtpInfo['password']); | 65 | Config::set('mail.mailers.smtp.password', $smtpInfo['password']); |
| 66 | Config::set('mail.from.address', $smtpInfo['email']); | 66 | Config::set('mail.from.address', $smtpInfo['email']); |
| 67 | Config::set('mail.from.name', $smtpInfo['from_name']); | 67 | Config::set('mail.from.name', $smtpInfo['from_name']); |
| 68 | + Config::set('mail.mailers.smtp.port', 465); // 578 端口 | ||
| 69 | + Config::set('mail.mailers.smtp.encryption', 'ssl'); // 578 通常需要使用 TLS 加密 | ||
| 68 | try { | 70 | try { |
| 69 | $status = AutoEmailLog::STATUS_SUCCESS; | 71 | $status = AutoEmailLog::STATUS_SUCCESS; |
| 70 | Mail::to([$info['email']])->send(new TextMail(['subject' => $info['title'], 'text' => $info['content']])); | 72 | Mail::to([$info['email']])->send(new TextMail(['subject' => $info['title'], 'text' => $info['content']])); |
| @@ -10,6 +10,7 @@ namespace App\Console\Commands\Test; | @@ -10,6 +10,7 @@ namespace App\Console\Commands\Test; | ||
| 10 | 10 | ||
| 11 | use App\Helper\Arr; | 11 | use App\Helper\Arr; |
| 12 | use App\Helper\Translate; | 12 | use App\Helper\Translate; |
| 13 | +use App\Mail\TextMail; | ||
| 13 | use App\Models\Blog\Blog; | 14 | use App\Models\Blog\Blog; |
| 14 | use App\Models\Blog\BlogCategory; | 15 | use App\Models\Blog\BlogCategory; |
| 15 | use App\Models\Com\KeywordVideoTask; | 16 | use App\Models\Com\KeywordVideoTask; |
| @@ -30,6 +31,7 @@ use App\Models\News\NewsCategory; | @@ -30,6 +31,7 @@ use App\Models\News\NewsCategory; | ||
| 30 | use App\Models\Product\Keyword; | 31 | use App\Models\Product\Keyword; |
| 31 | use App\Models\Product\KeywordRelated; | 32 | use App\Models\Product\KeywordRelated; |
| 32 | use App\Models\Product\Product; | 33 | use App\Models\Product\Product; |
| 34 | +use App\Models\Project\AutoEmailLog; | ||
| 33 | use App\Models\Project\DeployOptimize; | 35 | use App\Models\Project\DeployOptimize; |
| 34 | use App\Models\Project\MinorLanguages; | 36 | use App\Models\Project\MinorLanguages; |
| 35 | use App\Models\Project\Project; | 37 | use App\Models\Project\Project; |
| @@ -40,12 +42,10 @@ use App\Models\Template\BCustomTemplate; | @@ -40,12 +42,10 @@ use App\Models\Template\BCustomTemplate; | ||
| 40 | use App\Models\Template\BTemplateCom; | 42 | use App\Models\Template\BTemplateCom; |
| 41 | use App\Models\Template\Setting; | 43 | use App\Models\Template\Setting; |
| 42 | use App\Models\Template\Template; | 44 | use App\Models\Template\Template; |
| 43 | -use App\Services\AmazonS3Service; | ||
| 44 | -use App\Services\ProjectServer; | ||
| 45 | -use App\Utils\EncryptUtils; | ||
| 46 | -use GuzzleHttp\Exception\GuzzleException; | ||
| 47 | use Illuminate\Console\Command; | 45 | use Illuminate\Console\Command; |
| 46 | +use Illuminate\Support\Facades\Config; | ||
| 48 | use Illuminate\Support\Facades\DB; | 47 | use Illuminate\Support\Facades\DB; |
| 48 | +use Illuminate\Support\Facades\Mail; | ||
| 49 | use Illuminate\Support\Facades\Schema; | 49 | use Illuminate\Support\Facades\Schema; |
| 50 | 50 | ||
| 51 | 51 | ||
| @@ -74,6 +74,26 @@ class Demo extends Command | @@ -74,6 +74,26 @@ class Demo extends Command | ||
| 74 | return $this->projectList(); | 74 | return $this->projectList(); |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | + public function toQueue(){ | ||
| 78 | + $info = [ | ||
| 79 | + 'email' => '1123736022@qq.com', // 收件人邮箱 | ||
| 80 | + 'title' => '测试邮件', // 邮件标题 | ||
| 81 | + 'content' => '这是来自163邮箱的测试邮件', // 邮件内容 | ||
| 82 | + ]; | ||
| 83 | + Config::set('mail.mailers.smtp.host', 'smtp.163.com'); | ||
| 84 | + Config::set('mail.mailers.smtp.username', 'lyh103433@163.com'); | ||
| 85 | + Config::set('mail.mailers.smtp.password', 'BMf8B327Nhncunnb'); | ||
| 86 | + Config::set('mail.from.address', 'lyh103433@163.com'); | ||
| 87 | + Config::set('mail.from.name', 'lyh'); | ||
| 88 | + try { | ||
| 89 | + $status = AutoEmailLog::STATUS_SUCCESS; | ||
| 90 | + Mail::to([$info['email']])->send(new TextMail(['subject' => $info['title'], 'text' => $info['content']])); | ||
| 91 | + } catch (\Exception $e) { | ||
| 92 | + $status = AutoEmailLog::STATUS_ERROR; | ||
| 93 | + $this->output('任务:' . $info['id'] . ' 邮箱' . $info['email'] . '发送失败,' . $e->getMessage()); | ||
| 94 | + } | ||
| 95 | + return $status; | ||
| 96 | + } | ||
| 77 | public function projectList(){ | 97 | public function projectList(){ |
| 78 | $data = '深圳澄通睿视科技有限公司, 日照源洋包装材料有限公司, 河北途铂机电设备有限责任公司, 宁波市海曙玖鼎纸制品有限公司, 青岛众瑞智能仪器有限公司, 河北新秋国际贸易有限公司, 江西乔森电气有限公司, 沧州艾斯克粉业制造有限公司, 上海希然化工科技有限公司, 石家庄中创进出口有限公司, 东光县恒创利纸箱机械有限公司2021, 天津正能管业有限公司, 河北帷幄纺织有限公司, 广东顺德宝绅源环保科技有限公司, 石家庄艾文尔生物科技有限公司, 浙江福俄电气有限公司, 深圳市嘉盛数据科技有限公司, 江西米德实业有限公司, 苏州稼瑞机械有限公司, 青岛卓亚塑料机械有限公司, 宁波中力螺栓制造有限公司, 中山市万格电器有限公司, 廊坊禹神节水灌溉技术有限公司, 山东索玛特制帽有限公司, 蓝启生物技术(深圳)有限公司, 南宁奥展五金紧固件有限公司, 河北茉悠科技有限公司, 莱科阀门(天津)有限公司, 四川零点自动化系统有限公司, 厦门市戴尔乐新能源汽车有限公司, 宁波爱克利浦电器有限公司, 扬州天定成玩具礼品有限公司, 宁波市金典照明电器有限公司, 杭州法埃姆斯钢构有限公司, 北京迪文科技有限公司, 无锡动为储能科技有限公司, 河北唐蕴生物科技有限公司, 绍兴苏尔黛纺织品有限公司, 河北祈强金属制品有限公司, 上池诊断科技(深圳)有限公司, 泉州市三颖超硬工具有限公司, 宁波杰广电子有限公司, 石家庄德烨管业有限公司, 山东凯特钻具有限公司, 北京思普瑞特科技发展有限公司, 广州市印科标识科技有限公司, 优之科技(深圳)有限公司, 南通赫美特国际贸易有限公司, 天津誉瑞特品科技有限公司, 河北坤焰建材科技有限公司, 绍兴睿博机械有限公司, 西安法斯拓进出口有限公司, 深圳市德诺威电子有限公司, 百润(中国)有限公司, 达时科科技有限责任公司, 陈海英, 四川蓉腾自动化设备有限公司, 石家庄晋吉建材科技有限公司, 石家庄安瑞科气体机械有限公司, 深圳市扬帆纸制品有限公司, 舟山威尔曼机械科技有限公司, 佰纳通科技(北京)有限公司, 宁波嘉佑行科技有限公司, 东莞市凯信脚轮有限公司, 宝鸡轩泰颜料科技有限公司, 东莞市华腾五金制品有限公司, 深圳市思锐宇光电有限公司, 东莞市奥彩数码科技有限公司, 上海垂普国际贸易有限公司, 扬州爱拓户外用品有限公司, 余姚市立鑫电子有限公司, 晋州市金昌盛化工有限公司, 广东阿酷达箱包科技有限公司, 泉州市杰斯特仪器设备有限公司, 三和长兴科技有限公司, 佛山市精一家具有限公司谷腾分公司, 天津市洁雅妇女卫生保健制品有限公司, 江西海瑞天然植物有限公司, 九江贝海玻纤有限公司(客户做新站), 瑞安市齐笙科技有限公司, 石家庄华圣方洲国际贸易有限公司, 深圳市方成教学设备有限公司, 连云港索娜斯贸易有限公司, 睿華電子有限公司, 扬州市极盛照明有限公司, 天津市实丰国际贸易有限责任公司, 厦门亚迅工贸有限公司, 威海旺展旅游用品有限公司, 宁波首安纸业有限公司, 浙江乐马电气有限公司, 广东金莱特智能科技有限公司, 河北科星药业有限公司, 宁波迈可森汽配有限公司, 邯郸市常岚紧固件制造有限公司, 宁波市晶艳贸易有限公司, 苏州荃华生物材料有限公司, 青岛洛城通信息科技有限公司, 合肥领派克机械设备有限公司, 广西绿城工贸有限公司, 一元电气科技有限公司【主站】, 立圣丰(厦门)纺织科技有限公司, 深圳市汉瑞通科技有限公司, 扬州市润芳塑胶包装材料有限公司, 扬州浩邦新能源科技有限公司项目2, 深圳市锦昊安科技有限公司, 四川途乐乐科技有限公司, 天津广大纸业股份有限公司, 西安禾为生物科技有限公司, 西安奥谷生物科技有限公司, 佛山市三水歌谷电器有限公司, 西安麦克斯农用化学有限公司, 瑞安市富锐思进出口有限公司(黑格客户), 北京新科以仁科技发展有限公司, 镇江市惠灵顿膜业有限公司'; | 98 | $data = '深圳澄通睿视科技有限公司, 日照源洋包装材料有限公司, 河北途铂机电设备有限责任公司, 宁波市海曙玖鼎纸制品有限公司, 青岛众瑞智能仪器有限公司, 河北新秋国际贸易有限公司, 江西乔森电气有限公司, 沧州艾斯克粉业制造有限公司, 上海希然化工科技有限公司, 石家庄中创进出口有限公司, 东光县恒创利纸箱机械有限公司2021, 天津正能管业有限公司, 河北帷幄纺织有限公司, 广东顺德宝绅源环保科技有限公司, 石家庄艾文尔生物科技有限公司, 浙江福俄电气有限公司, 深圳市嘉盛数据科技有限公司, 江西米德实业有限公司, 苏州稼瑞机械有限公司, 青岛卓亚塑料机械有限公司, 宁波中力螺栓制造有限公司, 中山市万格电器有限公司, 廊坊禹神节水灌溉技术有限公司, 山东索玛特制帽有限公司, 蓝启生物技术(深圳)有限公司, 南宁奥展五金紧固件有限公司, 河北茉悠科技有限公司, 莱科阀门(天津)有限公司, 四川零点自动化系统有限公司, 厦门市戴尔乐新能源汽车有限公司, 宁波爱克利浦电器有限公司, 扬州天定成玩具礼品有限公司, 宁波市金典照明电器有限公司, 杭州法埃姆斯钢构有限公司, 北京迪文科技有限公司, 无锡动为储能科技有限公司, 河北唐蕴生物科技有限公司, 绍兴苏尔黛纺织品有限公司, 河北祈强金属制品有限公司, 上池诊断科技(深圳)有限公司, 泉州市三颖超硬工具有限公司, 宁波杰广电子有限公司, 石家庄德烨管业有限公司, 山东凯特钻具有限公司, 北京思普瑞特科技发展有限公司, 广州市印科标识科技有限公司, 优之科技(深圳)有限公司, 南通赫美特国际贸易有限公司, 天津誉瑞特品科技有限公司, 河北坤焰建材科技有限公司, 绍兴睿博机械有限公司, 西安法斯拓进出口有限公司, 深圳市德诺威电子有限公司, 百润(中国)有限公司, 达时科科技有限责任公司, 陈海英, 四川蓉腾自动化设备有限公司, 石家庄晋吉建材科技有限公司, 石家庄安瑞科气体机械有限公司, 深圳市扬帆纸制品有限公司, 舟山威尔曼机械科技有限公司, 佰纳通科技(北京)有限公司, 宁波嘉佑行科技有限公司, 东莞市凯信脚轮有限公司, 宝鸡轩泰颜料科技有限公司, 东莞市华腾五金制品有限公司, 深圳市思锐宇光电有限公司, 东莞市奥彩数码科技有限公司, 上海垂普国际贸易有限公司, 扬州爱拓户外用品有限公司, 余姚市立鑫电子有限公司, 晋州市金昌盛化工有限公司, 广东阿酷达箱包科技有限公司, 泉州市杰斯特仪器设备有限公司, 三和长兴科技有限公司, 佛山市精一家具有限公司谷腾分公司, 天津市洁雅妇女卫生保健制品有限公司, 江西海瑞天然植物有限公司, 九江贝海玻纤有限公司(客户做新站), 瑞安市齐笙科技有限公司, 石家庄华圣方洲国际贸易有限公司, 深圳市方成教学设备有限公司, 连云港索娜斯贸易有限公司, 睿華電子有限公司, 扬州市极盛照明有限公司, 天津市实丰国际贸易有限责任公司, 厦门亚迅工贸有限公司, 威海旺展旅游用品有限公司, 宁波首安纸业有限公司, 浙江乐马电气有限公司, 广东金莱特智能科技有限公司, 河北科星药业有限公司, 宁波迈可森汽配有限公司, 邯郸市常岚紧固件制造有限公司, 宁波市晶艳贸易有限公司, 苏州荃华生物材料有限公司, 青岛洛城通信息科技有限公司, 合肥领派克机械设备有限公司, 广西绿城工贸有限公司, 一元电气科技有限公司【主站】, 立圣丰(厦门)纺织科技有限公司, 深圳市汉瑞通科技有限公司, 扬州市润芳塑胶包装材料有限公司, 扬州浩邦新能源科技有限公司项目2, 深圳市锦昊安科技有限公司, 四川途乐乐科技有限公司, 天津广大纸业股份有限公司, 西安禾为生物科技有限公司, 西安奥谷生物科技有限公司, 佛山市三水歌谷电器有限公司, 西安麦克斯农用化学有限公司, 瑞安市富锐思进出口有限公司(黑格客户), 北京新科以仁科技发展有限公司, 镇江市惠灵顿膜业有限公司'; |
| 79 | $arr = explode(',',$data); | 99 | $arr = explode(',',$data); |
| @@ -313,7 +313,7 @@ class CustomModuleContentLogic extends BaseLogic | @@ -313,7 +313,7 @@ class CustomModuleContentLogic extends BaseLogic | ||
| 313 | } | 313 | } |
| 314 | $v['project_id'] = $this->user['project_id']; | 314 | $v['project_id'] = $this->user['project_id']; |
| 315 | $v['content_id'] = $content_id; | 315 | $v['content_id'] = $content_id; |
| 316 | - $v['module_id'] = $content_id; | 316 | + $v['module_id'] = $this->param['module_id']; |
| 317 | return $this->success($v); | 317 | return $this->success($v); |
| 318 | } | 318 | } |
| 319 | 319 |
| @@ -426,6 +426,8 @@ class ProductLogic extends BaseLogic | @@ -426,6 +426,8 @@ class ProductLogic extends BaseLogic | ||
| 426 | public function productDelete(){ | 426 | public function productDelete(){ |
| 427 | DB::connection('custom_mysql')->beginTransaction(); | 427 | DB::connection('custom_mysql')->beginTransaction(); |
| 428 | try { | 428 | try { |
| 429 | + $columnModel = new Column(); | ||
| 430 | + $detailModel = new Detail(); | ||
| 429 | $cateRelate = new CategoryRelated(); | 431 | $cateRelate = new CategoryRelated(); |
| 430 | //删除扩展字段 | 432 | //删除扩展字段 |
| 431 | $extendInfoModel = new ExtendInfo(); | 433 | $extendInfoModel = new ExtendInfo(); |
| @@ -441,6 +443,9 @@ class ProductLogic extends BaseLogic | @@ -441,6 +443,9 @@ class ProductLogic extends BaseLogic | ||
| 441 | //删除关联表 | 443 | //删除关联表 |
| 442 | $cateRelate->del(['product_id'=>$id]); | 444 | $cateRelate->del(['product_id'=>$id]); |
| 443 | $extendInfoModel->del(['product_id'=>$id]); | 445 | $extendInfoModel->del(['product_id'=>$id]); |
| 446 | + //删除描述 | ||
| 447 | + $columnModel->del(['product_id'=>$id]); | ||
| 448 | + $detailModel->del(['product_id'=>$id]); | ||
| 444 | }else{ | 449 | }else{ |
| 445 | $this->delRoute($id); | 450 | $this->delRoute($id); |
| 446 | //回收站 | 451 | //回收站 |
| @@ -489,8 +489,13 @@ class RankDataLogic extends BaseLogic | @@ -489,8 +489,13 @@ class RankDataLogic extends BaseLogic | ||
| 489 | $without_extension_project_ids = [658]; //是否达标只统计主词的 | 489 | $without_extension_project_ids = [658]; //是否达标只统计主词的 |
| 490 | $extension_project_ids = [354]; //扩展词也到达标的 | 490 | $extension_project_ids = [354]; //扩展词也到达标的 |
| 491 | $ceaseProjectId = [ | 491 | $ceaseProjectId = [ |
| 492 | + 47, | ||
| 492 | 354, | 493 | 354, |
| 493 | - 1283 | 494 | + 378, |
| 495 | + 649, | ||
| 496 | + 1283, | ||
| 497 | + 1893, | ||
| 498 | + 2066 | ||
| 494 | ];//暂停项目id | 499 | ];//暂停项目id |
| 495 | 500 | ||
| 496 | //一个项目多个api_no | 501 | //一个项目多个api_no |
| @@ -74,11 +74,12 @@ class TranslateLogic extends BaseLogic | @@ -74,11 +74,12 @@ class TranslateLogic extends BaseLogic | ||
| 74 | } | 74 | } |
| 75 | $arr2 = []; | 75 | $arr2 = []; |
| 76 | foreach ($text_array as $val) { | 76 | foreach ($text_array as $val) { |
| 77 | + $val = urldecode($val); | ||
| 78 | + $val = str_replace(' ','',$val);//处理特殊字符 | ||
| 79 | + $val = trim(str_replace(' ','',$val)); | ||
| 77 | if($val == ' ' || $val == ''){ | 80 | if($val == ' ' || $val == ''){ |
| 78 | continue; | 81 | continue; |
| 79 | } | 82 | } |
| 80 | - $val = str_replace(' ','',urldecode($val));//处理特殊字符 | ||
| 81 | - $val = trim(str_replace(' ','',$val)); | ||
| 82 | if (FALSE == in_array($val, $old_key)){ | 83 | if (FALSE == in_array($val, $old_key)){ |
| 83 | $arr2[] = $val; | 84 | $arr2[] = $val; |
| 84 | } | 85 | } |
-
请 注册 或 登录 后发表评论