作者 赵彬吉
... ... @@ -112,12 +112,13 @@ class GeoController extends BaseController
}
$content = explode("\n", $data->content);
$confirm = explode("\n", $data->confirm);
$max_num = $data->max_num;
$type = $data->type;
$status = $data->status;
$projectModel = new Project();
$projectInfo = $projectModel->read(['id' => $data->project_id],['title','version']);
$project_title = $projectInfo['title'] ?? '';
$result = compact('content', 'confirm', 'type', 'status', 'project_title');
$result = compact('content', 'confirm', 'type', 'status', 'project_title','max_num');
$this->response('success',Code::SUCCESS,$result);
}
... ...
... ... @@ -71,9 +71,6 @@ class GeoConfirmLogic extends BaseLogic
if($data === false){
return $this->success();
}
if(empty($data['confirm'])){
$data['confirm'] = $data['content'];
}
return $this->success($data);
}
... ...
... ... @@ -12,6 +12,7 @@ use App\Models\Project\Project;
use App\Models\Scoring\ScoringSystem;
use App\Models\Sms\SmsLog;
use App\Models\User\User;
use App\Models\WorkOrder\TicketProject;
use Illuminate\Support\Facades\Cache;
class UserLoginLogic
... ... @@ -257,6 +258,9 @@ class UserLoginLogic
* @time :2024/11/5 16:51
*/
public function handleInfo($info,$project){
//根据项目获取工单uuid
$ticketProjectModel = new TicketProject();
$info['ticket_uuid'] = $ticketProjectModel->getValue(['project_cate'=>2,'table_id'=>$project['id']],'uuid') ?? '';
$info['title'] = $project['title'] ?? '';
$info['company'] = $project['company'] ?? '';
$info['from_order_id'] = $project['from_order_id'] ?? '';
... ...
... ... @@ -45,9 +45,9 @@ class SyncImageFileJob implements ShouldQueue
public function synchronizationFile($path_name){
//同步到大文件
$file_path = config('filesystems.disks.cos')['cdn1'].$path_name;
$directoryPath = pathinfo($path_name, PATHINFO_DIRNAME);
$cmd = 'curl -k -F "file_path='.$file_path.'" -F "save_path=/www/wwwroot/cos'.$directoryPath.'" https://v6-file.globalso.com/upload.php';
// $file_path = config('filesystems.disks.cos')['cdn1'].$path_name;
// $directoryPath = pathinfo($path_name, PATHINFO_DIRNAME);
$cmd = 'curl -k -F "file_path='.$path_name.'" -F "save_path=/www/wwwroot/cos'.$path_name.'" https://v6-file.globalso.com/upload.php';
echo date('Y-m-d H:i:s') . ' | ' . $cmd . PHP_EOL;
return shell_exec($cmd);
}
... ...
... ... @@ -56,11 +56,11 @@ class GeoConfirm extends Base
* @method :post
* @time :2025/10/31 10:10
*/
public static function typeDesc()
public static function typeDesc($num = 10)
{
return [
self::TYPE_TITLE => '需选择确认10个文章标题,后续根据您确认的文章标题整理文章内容;如有补充展会、资质证书等资料,可一并提供。',
self::TYPE_KEYWORD => '需选择确认10个核心关键词问题,后续根据您确认的核心关键词问题整理文章标题;建议提供展会、资质证书等资料。'
self::TYPE_TITLE => '需选择确认'.$num.'个文章标题,后续根据您确认的文章标题整理文章内容;如有补充展会、资质证书等资料,可一并提供。',
self::TYPE_KEYWORD => '需选择确认'.$num.'个核心关键词问题,后续根据您确认的核心关键词问题整理文章标题;建议提供展会、资质证书等资料。'
];
}
... ... @@ -117,12 +117,10 @@ class GeoConfirm extends Base
$created_at = $updated_at = now();
$projectModel = new Project();
$company = $projectModel->getValue(['id'=>$project_id],'company');
$deployModel = new DeployBuild();
$seo_plan = $deployModel->getValue(['project_id'=>$project_id],'seo_plan');
$seo_plan_name = ($projectModel::seoMap()[$seo_plan]) ?? '无选择';
$seo_plan_name = 'GEO';
$content_array = [
'title' => "【{$company} {$seo_plan_name}】".self::typeMapping()[$data->type],
'desc' => self::typeDesc()[$data->type],
'desc' => self::typeDesc($data->max_num)[$data->type],
'size' => 0,
'thumbSize' => 0,
'thumbUrl' => 'https://hub.globalso.com/logocm.png',
... ...
... ... @@ -94,13 +94,11 @@ class GeoWritings extends Base
];
$projectModel = new Project();
$company = $projectModel->getValue(['id'=>$project_id],'company');
$deployModel = new DeployBuild();
$seo_plan = $deployModel->getValue(['project_id'=>$project_id],'seo_plan');
$seo_plan_name = ($projectModel::seoMap()[$seo_plan]) ?? '无选择';
$seo_plan_name = 'GEO';
$token = Crypt::encrypt($param);
$content_array = [
'title' => "【{$company} {$seo_plan_name}】核心文章已整理,请查看并确认",
'desc' => '需选择确认10篇文章,后续根据您确认的文章进行外链发布。',
'desc' => '需选择确认文章,后续根据您确认的文章进行外链发布。',
'size' => 0,
'thumbSize' => 0,
'thumbUrl' => 'https://hub.globalso.com/logocm.png',
... ...