作者 lyh

gx

... ... @@ -186,18 +186,10 @@ class SyncProject extends Command
// DB::beginTransaction();
// try {
$res = $this->saveProject($data['project']);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($res, true) . PHP_EOL, FILE_APPEND);
$id = $res['id'];
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(333333, true) . PHP_EOL, FILE_APPEND);
$this->setPostId($data['deploy_build']['plan'],$id);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($data['payment'], true) . PHP_EOL, FILE_APPEND);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(333333, true) . PHP_EOL, FILE_APPEND);
$this->savePayment($data['payment'],$id);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($data['deploy_build'], true) . PHP_EOL, FILE_APPEND);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(333333, true) . PHP_EOL, FILE_APPEND);
$this->saveDeployBuild($data['deploy_build'],$id);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($data['deploy_optimize'], true) . PHP_EOL, FILE_APPEND);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(333333, true) . PHP_EOL, FILE_APPEND);
$this->saveDeployOptimize($data['deploy_optimize'],$id);
$this->saveAfter($data['project_after'],$id);
// DB::commit();
... ... @@ -252,9 +244,6 @@ class SyncProject extends Command
$param['confirm_file'] = Arr::a2s($param['confirm_file']);
}
$projectModel = new Project();
@file_put_contents(storage_path('logs/lyh_error.log'), var_export(222222, true) . PHP_EOL, FILE_APPEND);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($param, true) . PHP_EOL, FILE_APPEND);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($projectModel->addReturnId($param), true) . PHP_EOL, FILE_APPEND);
return $projectModel->addReturnId($param);
}
... ...
... ... @@ -12,6 +12,7 @@ namespace App\Http\Controllers\Bside;
use App\Enums\Common\Code;
use App\Events\WebSocketMessage;
use App\Events\WebSocketMessageSent;
use App\Helper\Arr;
use App\Helper\Common;
use App\Helper\Translate;
use App\Helper\Wechat;
... ... @@ -197,12 +198,38 @@ class LoginController extends BaseController
$this->response('success',Code::SUCCESS,['info'=>$info]);
}
public function ceshi(EncryptUtils $encrypt){
$serviceSettingModel = new Service();
$info = $serviceSettingModel->read(['type'=>4]);
$data = $encrypt->unlock_url($this->param['code'], $info['values']);
$data = json_decode($data, true);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND);
$this->response($data);
public function ceshi(){
$param = array (
'title' => '20230830-广东展翠食品股份有限公司',
'api_no' => 9110,
'company' => '广东展翠食品股份有限公司',
'lead_name' => '蔡先生',
'mobile' => '15994944976',
'mysql_id' => 2,
'qq' => '3590058664',
'channel' => '{"zone_id":4,"channel_id":68,"user_id":522}',
'requirement' => '赠送达标天数183天,赠送一个小语种(国家任选),网站域名归甲方所有',
'cooperate_date' => '2023-06-26',
);
if(isset($param['level']) && !empty($param['level'])){
$param['level'] = Arr::arrToSet($param['level']);
}
if(isset($param['channel']) && !empty($param['channel'])){
$param['channel'] = Arr::a2s($param['channel']);
}
if(isset($param['notice_file']) && !empty($param['notice_file'])){
foreach ($param['notice_file'] as &$v1) {
$v1['url'] = basename($v1['url']);
}
$param['notice_file'] = Arr::a2s($param['notice_file']);
}
if(isset($param['confirm_file']) && !empty($param['confirm_file'])){
foreach ($param['confirm_file'] as &$v2) {
$v2['url'] = basename($v2['url']);
}
$param['confirm_file'] = Arr::a2s($param['confirm_file']);
}
$projectModel = new Project();
return $projectModel->addReturnId($param);
}
}
... ...