作者 lyh

gx脚本

@@ -66,7 +66,7 @@ class Notice extends Command @@ -66,7 +66,7 @@ class Notice extends Command
66 } 66 }
67 foreach ($domainList as $v1){ 67 foreach ($domainList as $v1){
68 //TODO::通知C端 68 //TODO::通知C端
69 - @file_put_contents(storage_path('logs/notice_c_'.date('Y-m-d').'.log'), var_export($v1['domain'], true) . PHP_EOL, FILE_APPEND); 69 + @file_put_contents(storage_path('logs/notice_c'.'.log'), var_export($v1['domain'], true) . PHP_EOL, FILE_APPEND);
70 $this->curlDelRoute($v1['domain'],$v1['project_id']); 70 $this->curlDelRoute($v1['domain'],$v1['project_id']);
71 } 71 }
72 return true; 72 return true;
@@ -63,6 +63,7 @@ class CopyProjectJob implements ShouldQueue @@ -63,6 +63,7 @@ class CopyProjectJob implements ShouldQueue
63 $data['delete_status'] = 1; 63 $data['delete_status'] = 1;
64 unset($data['id']); 64 unset($data['id']);
65 $project_id = $projectModel->insertGetId($data); 65 $project_id = $projectModel->insertGetId($data);
  66 + @file_put_contents(storage_path('logs/lyh/copy_project'.'.log'), var_export('复制项目成功:'.$project_id, true) . PHP_EOL, FILE_APPEND);
66 $hashids = new Hashids($data['from_order_id'], 13, 'abcdefghjkmnpqrstuvwxyz1234567890'); 67 $hashids = new Hashids($data['from_order_id'], 13, 'abcdefghjkmnpqrstuvwxyz1234567890');
67 $projectModel->edit(['from_order_id'=>$hashids->encode($project_id)],['id'=>$project_id]); 68 $projectModel->edit(['from_order_id'=>$hashids->encode($project_id)],['id'=>$project_id]);
68 //复制设置的模版 69 //复制设置的模版
@@ -128,6 +129,7 @@ class CopyProjectJob implements ShouldQueue @@ -128,6 +129,7 @@ class CopyProjectJob implements ShouldQueue
128 DB::commit(); 129 DB::commit();
129 }catch (\Exception $e){ 130 }catch (\Exception $e){
130 DB::rollBack(); 131 DB::rollBack();
  132 + @file_put_contents(storage_path('logs/lyh/copy_project'.'.log'), var_export('复制项目失败:'.$e->getMessage(), true) . PHP_EOL, FILE_APPEND);
131 $this->fail('error'); 133 $this->fail('error');
132 } 134 }
133 if($type != 0){ 135 if($type != 0){