|
...
|
...
|
@@ -8,6 +8,7 @@ |
|
|
|
namespace App\Models\Geo;
|
|
|
|
|
|
|
|
use App\Models\Base;
|
|
|
|
use App\Models\Project\Project;
|
|
|
|
use App\Models\Workchat\MessagePush;
|
|
|
|
|
|
|
|
/**
|
|
...
|
...
|
@@ -42,8 +43,23 @@ class GeoConfirm extends Base |
|
|
|
public static function typeMapping()
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
self::TYPE_TITLE => '确认标题',
|
|
|
|
self::TYPE_KEYWORD => '确认关键词'
|
|
|
|
self::TYPE_TITLE => '核心关键词问题已整理,请查看并确认',
|
|
|
|
self::TYPE_KEYWORD => '文章标题已整理,请查看并确认'
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :确认返回数据
|
|
|
|
* @name :typeDesc
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2025/10/31 10:10
|
|
|
|
*/
|
|
|
|
public static function typeDesc()
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
self::TYPE_TITLE => '需选择确认10个文章标题,后续根据您确认的文章标题整理文章内容;如有补充展会、资质证书等资料,可一并提供。',
|
|
|
|
self::TYPE_KEYWORD => '需选择确认10个核心关键词问题,后续根据您确认的核心关键词问题整理文章标题;建议提供展会、资质证书等资料。'
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
...
|
...
|
@@ -98,9 +114,12 @@ class GeoConfirm extends Base |
|
|
|
$type = MessagePush::TYPE_GEO_CONFIRM;
|
|
|
|
$token = uniqid().$friend_id;
|
|
|
|
$created_at = $updated_at = now();
|
|
|
|
$projectModel = new Project();
|
|
|
|
$projectInfo = $projectModel->read(['id'=>$project_id],['company','seo_plan']);
|
|
|
|
$seo_plan = ($projectModel::seoMap()[$projectInfo['seo_plan']]) ?? '无选择';
|
|
|
|
$content_array = [
|
|
|
|
'title' => self::typeMapping()[$data->type],
|
|
|
|
'desc' => self::typeMapping()[$data->type],
|
|
|
|
'title' => "【{$projectInfo['company']} {$seo_plan}】".self::typeMapping()[$data->type],
|
|
|
|
'desc' => self::typeDesc()[$data->type],
|
|
|
|
'size' => 0,
|
|
|
|
'thumbSize' => 0,
|
|
|
|
'thumbUrl' => 'https://hub.globalso.com/logocm.png',
|
...
|
...
|
|