作者 lyh

gx

... ... @@ -60,7 +60,6 @@ class SyncProject extends Command
try {
$api = new OaGlobalsoApi();
$data = $api->order_info($item['data']['order_id']);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($data['data'], true) . PHP_EOL, FILE_APPEND);
if(!$data || empty($data['data'])){
LogUtils::error('OaGlobalsoApi order_info error', $data);
$this->retry($item);
... ... @@ -188,20 +187,12 @@ class SyncProject extends Command
}
DB::beginTransaction();
try {
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(1111, true) . PHP_EOL, FILE_APPEND);
$id = $this->saveProject($data['project']);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($id, true) . PHP_EOL, FILE_APPEND);
$this->setPostId($data['deploy_build']['plan'],$id);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(222, true) . PHP_EOL, FILE_APPEND);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($data['payment'], true) . PHP_EOL, FILE_APPEND);
$this->setPostId($data['deploy_build']['plan'],$id);;
$this->savePayment($data['payment'],$id);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(444, true) . PHP_EOL, FILE_APPEND);
$this->saveDeployBuild($data['deploy_build'],$id);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(555, true) . PHP_EOL, FILE_APPEND);
$this->saveDeployOptimize($data['deploy_optimize'],$id);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(666, true) . PHP_EOL, FILE_APPEND);
$this->saveAfter($data['project_after'],$id);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(777, true) . PHP_EOL, FILE_APPEND);
DB::commit();
}catch (\Exception $e){
DB::rollBack();
... ...
... ... @@ -435,7 +435,7 @@ if (!function_exists('getImageUrl')) {
if($info['is_cos'] == 1){
$cos = config('filesystems.disks.cos');
$cosCdn = $cos['cdn'];
$url = $cosCdn.$info['path'];
$url = $cosCdn.'/upload'.$info['path'];
}else{
$url = url('upload'.$info['path']);
}
... ... @@ -470,7 +470,7 @@ if (!function_exists('getFileUrl')) {
if($info['is_cos'] == 1){
$cos = config('filesystems.disks.cos');
$cosCdn = $cos['cdn'];
$url = $cosCdn.$info['path'];
$url = $cosCdn.'/upload'.$info['path'];
}else{
$url = url('upload'.$info['path']);
}
... ...
... ... @@ -258,11 +258,8 @@ class LoginController extends BaseController
return $data;
}
public function ceshi(){
}
public function daoru(){
public function ceshi(){
$templateModel = new Template();
$list = $templateModel->list();
foreach ($list as $k => $v){
... ... @@ -294,8 +291,8 @@ class LoginController extends BaseController
}
public function updateHtml(){
$html = $this->re($v['html'],'https://develop.globalso.com/a/image/','https://ecdn6.globalso.com/public/template/');
$html = $this->re($v['html'],'https://develop.globalso.com/b/image/','https://ecdn6.globalso.com/public/template/');
$html = $this->re($v['html'],'develop.globalso.com','ecdn6.globalso.com');
$html = $this->re($v['html'],'develop.globalso.com','ecdn6.globalso.com');
}
public function updateCe(){
... ...