|
@@ -8,6 +8,7 @@ |
|
@@ -8,6 +8,7 @@ |
|
8
|
namespace App\Models\Geo;
|
8
|
namespace App\Models\Geo;
|
|
9
|
|
9
|
|
|
10
|
use App\Models\Base;
|
10
|
use App\Models\Base;
|
|
|
|
11
|
+use App\Models\Project\Project;
|
|
11
|
use App\Models\Workchat\MessagePush;
|
12
|
use App\Models\Workchat\MessagePush;
|
|
12
|
|
13
|
|
|
13
|
/**
|
14
|
/**
|
|
@@ -42,8 +43,23 @@ class GeoConfirm extends Base |
|
@@ -42,8 +43,23 @@ class GeoConfirm extends Base |
|
42
|
public static function typeMapping()
|
43
|
public static function typeMapping()
|
|
43
|
{
|
44
|
{
|
|
44
|
return [
|
45
|
return [
|
|
45
|
- self::TYPE_TITLE => '确认标题',
|
|
|
|
46
|
- self::TYPE_KEYWORD => '确认关键词'
|
46
|
+ self::TYPE_TITLE => '核心关键词问题已整理,请查看并确认',
|
|
|
|
47
|
+ self::TYPE_KEYWORD => '文章标题已整理,请查看并确认'
|
|
|
|
48
|
+ ];
|
|
|
|
49
|
+ }
|
|
|
|
50
|
+
|
|
|
|
51
|
+ /**
|
|
|
|
52
|
+ * @remark :确认返回数据
|
|
|
|
53
|
+ * @name :typeDesc
|
|
|
|
54
|
+ * @author :lyh
|
|
|
|
55
|
+ * @method :post
|
|
|
|
56
|
+ * @time :2025/10/31 10:10
|
|
|
|
57
|
+ */
|
|
|
|
58
|
+ public static function typeDesc()
|
|
|
|
59
|
+ {
|
|
|
|
60
|
+ return [
|
|
|
|
61
|
+ self::TYPE_TITLE => '需选择确认10个文章标题,后续根据您确认的文章标题整理文章内容;如有补充展会、资质证书等资料,可一并提供。',
|
|
|
|
62
|
+ self::TYPE_KEYWORD => '需选择确认10个核心关键词问题,后续根据您确认的核心关键词问题整理文章标题;建议提供展会、资质证书等资料。'
|
|
47
|
];
|
63
|
];
|
|
48
|
}
|
64
|
}
|
|
49
|
|
65
|
|
|
@@ -98,9 +114,12 @@ class GeoConfirm extends Base |
|
@@ -98,9 +114,12 @@ class GeoConfirm extends Base |
|
98
|
$type = MessagePush::TYPE_GEO_CONFIRM;
|
114
|
$type = MessagePush::TYPE_GEO_CONFIRM;
|
|
99
|
$token = uniqid().$friend_id;
|
115
|
$token = uniqid().$friend_id;
|
|
100
|
$created_at = $updated_at = now();
|
116
|
$created_at = $updated_at = now();
|
|
|
|
117
|
+ $projectModel = new Project();
|
|
|
|
118
|
+ $projectInfo = $projectModel->read(['id'=>$project_id],['company','seo_plan']);
|
|
|
|
119
|
+ $seo_plan = ($projectModel::seoMap()[$projectInfo['seo_plan']]) ?? '无选择';
|
|
101
|
$content_array = [
|
120
|
$content_array = [
|
|
102
|
- 'title' => self::typeMapping()[$data->type],
|
|
|
|
103
|
- 'desc' => self::typeMapping()[$data->type],
|
121
|
+ 'title' => "【{$projectInfo['company']} {$seo_plan}】".self::typeMapping()[$data->type],
|
|
|
|
122
|
+ 'desc' => self::typeDesc()[$data->type],
|
|
104
|
'size' => 0,
|
123
|
'size' => 0,
|
|
105
|
'thumbSize' => 0,
|
124
|
'thumbSize' => 0,
|
|
106
|
'thumbUrl' => 'https://hub.globalso.com/logocm.png',
|
125
|
'thumbUrl' => 'https://hub.globalso.com/logocm.png',
|