作者 Your Name
@@ -47,17 +47,6 @@ class EmergencyRenewSite extends Command @@ -47,17 +47,6 @@ class EmergencyRenewSite extends Command
47 continue; 47 continue;
48 } 48 }
49 49
50 - //获取站点其他域名  
51 - $other_domain = [];  
52 - if (strpos($domain_info['domain'], 'www.') === 0) {  
53 - $other_domain[] = str_replace('www', '*', $domain_info['domain']);  
54 -  
55 - $top_domain = str_replace('www.', '', $domain_info['domain']);  
56 - if ($this->check_cname($top_domain, $target_server)) {  
57 - $other_domain[] = $top_domain;  
58 - }  
59 - }  
60 -  
61 //创建目标服务器建站任务 50 //创建目标服务器建站任务
62 $map_create = [ 51 $map_create = [
63 'type' => DomainCreateTask::TYPE_MAIN, 52 'type' => DomainCreateTask::TYPE_MAIN,
@@ -68,7 +57,6 @@ class EmergencyRenewSite extends Command @@ -68,7 +57,6 @@ class EmergencyRenewSite extends Command
68 ]; 57 ];
69 $task_info = $create_model->read($map_create, ['id']); 58 $task_info = $create_model->read($map_create, ['id']);
70 if (!$task_info) { 59 if (!$task_info) {
71 - $other_domain && $map_create['other_domain'] = json_encode($other_domain);  
72 $create_model->add($map_create); 60 $create_model->add($map_create);
73 } 61 }
74 62
@@ -350,6 +350,8 @@ class ProductLogic extends BaseLogic @@ -350,6 +350,8 @@ class ProductLogic extends BaseLogic
350 DB::connection('custom_mysql')->beginTransaction(); 350 DB::connection('custom_mysql')->beginTransaction();
351 try { 351 try {
352 $cateRelate = new CategoryRelated(); 352 $cateRelate = new CategoryRelated();
  353 + //删除扩展字段
  354 + $extendInfoModel = new ExtendInfo();
353 foreach ($this->param['ids'] as $id) { 355 foreach ($this->param['ids'] as $id) {
354 $info = $this->model->read(['id'=>$id],['id','status']); 356 $info = $this->model->read(['id'=>$id],['id','status']);
355 if($info['status'] == Product::STATUS_RECYCLE){ 357 if($info['status'] == Product::STATUS_RECYCLE){
@@ -359,6 +361,7 @@ class ProductLogic extends BaseLogic @@ -359,6 +361,7 @@ class ProductLogic extends BaseLogic
359 $this->model->del(['id'=>$id]); 361 $this->model->del(['id'=>$id]);
360 //删除关联表 362 //删除关联表
361 $cateRelate->del(['product_id'=>$id]); 363 $cateRelate->del(['product_id'=>$id]);
  364 + $extendInfoModel->del(['product_id'=>$id]);
362 }else{ 365 }else{
363 //回收站 366 //回收站
364 $this->model->edit(['status'=>Product::STATUS_RECYCLE],['id'=>$id]); 367 $this->model->edit(['status'=>Product::STATUS_RECYCLE],['id'=>$id]);