合并分支 'lyh-server' 到 'master'
Lyh server 查看合并请求 !3102
正在显示
3 个修改的文件
包含
29 行增加
和
9 行删除
| @@ -251,7 +251,6 @@ class InquiryController extends BaseController | @@ -251,7 +251,6 @@ class InquiryController extends BaseController | ||
| 251 | $data = $data['list'] ?? []; | 251 | $data = $data['list'] ?? []; |
| 252 | foreach ($data as &$item){ | 252 | foreach ($data as &$item){ |
| 253 | //非正常登录的 | 253 | //非正常登录的 |
| 254 | - | ||
| 255 | if(($this->user['login_source']??0) != 2 && ($this->user['login_source']??0) != 3){ | 254 | if(($this->user['login_source']??0) != 2 && ($this->user['login_source']??0) != 3){ |
| 256 | if(!empty($item['email']) && (strpos($item['email'], '@') !== false)){ | 255 | if(!empty($item['email']) && (strpos($item['email'], '@') !== false)){ |
| 257 | $item['email'] = email_desensitize($item['email']); | 256 | $item['email'] = email_desensitize($item['email']); |
| @@ -259,9 +258,7 @@ class InquiryController extends BaseController | @@ -259,9 +258,7 @@ class InquiryController extends BaseController | ||
| 259 | //脱敏 | 258 | //脱敏 |
| 260 | !empty($item['phone']) && $item['phone'] = substr($item['phone'], 0, -4) . '****'; | 259 | !empty($item['phone']) && $item['phone'] = substr($item['phone'], 0, -4) . '****'; |
| 261 | } | 260 | } |
| 262 | - | ||
| 263 | $item['ip_address'] = "{$item['country']}({$item['ip']})"; | 261 | $item['ip_address'] = "{$item['country']}({$item['ip']})"; |
| 264 | - | ||
| 265 | if(!empty($this->param['form_id'])){ | 262 | if(!empty($this->param['form_id'])){ |
| 266 | $item = array_merge($item, $item['data']); | 263 | $item = array_merge($item, $item['data']); |
| 267 | } | 264 | } |
| @@ -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', |
| @@ -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\ProjectAssociation\ProjectAssociation; | 12 | use App\Models\ProjectAssociation\ProjectAssociation; |
| 12 | use App\Models\Workchat\MessagePush; | 13 | use App\Models\Workchat\MessagePush; |
| 13 | use Illuminate\Support\Facades\Crypt; | 14 | use Illuminate\Support\Facades\Crypt; |
| @@ -90,10 +91,13 @@ class GeoWritings extends Base | @@ -90,10 +91,13 @@ class GeoWritings extends Base | ||
| 90 | 'project_id' => $project_id, | 91 | 'project_id' => $project_id, |
| 91 | 'send_at' => time() | 92 | 'send_at' => time() |
| 92 | ]; | 93 | ]; |
| 94 | + $projectModel = new Project(); | ||
| 95 | + $projectInfo = $projectModel->read(['id'=>$project_id],['company','seo_plan']); | ||
| 96 | + $seo_plan = ($projectModel::seoMap()[$projectInfo['seo_plan']]) ?? '无选择'; | ||
| 93 | $token = Crypt::encrypt($param); | 97 | $token = Crypt::encrypt($param); |
| 94 | $content_array = [ | 98 | $content_array = [ |
| 95 | - 'title' => "确认核心文章", | ||
| 96 | - 'desc' => '确认核心文章', | 99 | + 'title' => "【{$projectInfo['company']} {$seo_plan}】核心文章已整理,请查看并确认", |
| 100 | + 'desc' => '需选择确认10篇文章,后续根据您确认的文章进行外链发布。', | ||
| 97 | 'size' => 0, | 101 | 'size' => 0, |
| 98 | 'thumbSize' => 0, | 102 | 'thumbSize' => 0, |
| 99 | 'thumbUrl' => 'https://hub.globalso.com/logocm.png', | 103 | 'thumbUrl' => 'https://hub.globalso.com/logocm.png', |
-
请 注册 或 登录 后发表评论