作者 zhl

Merge remote-tracking branch 'origin/master' into zhl

... ... @@ -100,9 +100,11 @@ class UpdateKeyword extends Command
}else{
$randomNumber = $text[$key] ?? rand(0, $number - 1);
}
if(isset($text[$randomNumber])){
$keywordModel->edit(['keyword_content'=>$text[$randomNumber]],['title'=>$item]);
}
}
}
//按给定的数量更新
if(!empty($updateObject['number']) && ($updateObject['number'] != 0)){
$keywordIdArr = $keywordModel->where("status",1)->inRandomOrder()->take($updateObject['number'])->pluck('id')->toArray();
... ... @@ -112,10 +114,12 @@ class UpdateKeyword extends Command
}else{
$randomNumber = $text[$key] ?? rand(0, $number - 1);
}
if(isset($text[$randomNumber])){
$keywordModel->edit(['keyword_content'=>$text[$randomNumber]],['title'=>$item]);
}
}
}
}
return true;
}
... ...
<?php
/**
* @remark :
* @name :GeoConfirmController.php
* @author :lyh
* @method :post
* @time :2025/10/25 11:35
*/
namespace App\Http\Controllers\Aside\Geo;
use App\Enums\Common\Code;
use App\Http\Controllers\Aside\BaseController;
use App\Http\Logic\Aside\Geo\GeoConfirmLogic;
use Illuminate\Http\Request;
/**
* @remark :用户确认信息表
* @name :GeoConfirmController
* @author :lyh
* @method :post
* @time :2025/10/25 11:37
*/
class GeoConfirmController extends BaseController
{
public function __construct(){
parent::__construct();
$this->logic = new GeoConfirmLogic();
}
/**
* 保存确认数据, 并推送微信群
* @param Request $request
* @throws \App\Exceptions\AsideGlobalException
*/
public function saveConfirmContent()
{
$this->request->validate([
'project_id' => 'required',
'type' => 'required|integer',
'content' => 'required',
'max_num' => 'required',
], [
'project_id.required' => '项目ID不能为空',
'type.required' => '确定数据类型不能为空',
'type.integer' => '确定数据类型不正确',
'content.required' => '确定数据不能为空',
'max_num.required' => '最大确认数量不能为空',
]);
$data = $this->logic->saveConfirmContent($this->param);
$this->response('success', Code::SUCCESS, $data);
}
}
... ...
... ... @@ -9,6 +9,7 @@ namespace App\Http\Controllers\Aside\Geo;
use App\Enums\Common\Code;
use App\Http\Controllers\Aside\BaseController;
use App\Http\Logic\Aside\Geo\GeoLogic;
use App\Models\Geo\GeoConf;
use App\Models\Geo\GeoConfirm;
use App\Models\Manage\ManageHr;
... ... @@ -23,6 +24,11 @@ use Illuminate\Http\Request;
*/
class GeoController extends BaseController
{
public function __construct(){
parent::__construct();
$this->logic = new GeoLogic();
}
/**
* 获取GEO相关配置
* @param Request $request
... ... @@ -34,36 +40,8 @@ class GeoController extends BaseController
], [
'project_id.required' => '项目ID不能为空',
]);
$projectModel = new Project();
$project_geo_conf = $projectModel->read(['id' => $this->param['project_id']],['title', 'version', 'geo_status', 'geo_qualify_num']);
$geoConfModel = new GeoConf();
$geo_conf = $geoConfModel->read(['project_id' => $this->param['project_id']]);
if($geo_conf === false){//数据未初始化
$geo_conf = [
'project_id' => $this->param['project_id'],
'manager_id'=>0,
'company'=>$project_geo_conf['title'],
'brand'=>'',
'description'=>''
];
}
//负责人集合
$geo_manage_list = $geoConfModel->geoManage();
// geo配置管理员,已经移除管理员列表,补充管理员信息
if ($geo_conf && $geo_conf['manager_id'] && empty($geo_manage_list[$geo_conf['manager_id']])) {
$manage = ManageHr::where(['id' => $geo_conf['manager_id']])->pluck('name', 'id')->toArray();
$geo_manage_list = array_merge($geo_manage_list, $manage);
}
$result = [
'project_geo_conf' => $project_geo_conf,
'geo_conf' => $geo_conf,
'geo_manage_list' => $geo_manage_list,
'geo_keyword' => [
'prefix' => KeywordPrefix::getKeyword($this->param['project_id'], KeywordPrefix::TYPE_GEO_PREFIX),
'suffix' => KeywordPrefix::getKeyword($this->param['project_id'], KeywordPrefix::TYPE_GEO_SUFFIX),
],
];
$this->response('success', Code::SUCCESS, $result);
$data = $this->logic->getCongInfo($this->param['project_id']);
$this->response('success', Code::SUCCESS, $data);
}
/**
... ... @@ -87,47 +65,11 @@ class GeoController extends BaseController
'brand.max' => '品牌名不能超过200个字符',
'description.max' => '描述不能超过500个字符',
]);
try {
$data = GeoConf::saveConf($this->param['project_id'], $this->param['manager_id'], $this->param['company'], $this->param['brand'], $this->param['description'], $this->param['prefix'], $this->param['suffix']);
# FIXME 保存GEO状态 达标数量
$data = $this->logic->saveConfig($this->param);
$this->response('success', Code::SUCCESS, $data);
} catch (\Exception $e) {
$this->fail('配置保存失败, error:' . $e->getMessage());
}
}
/**
* 保存确认数据, 并推送微信群
* @param Request $request
* @throws \App\Exceptions\AsideGlobalException
*/
public function saveConfirmContent()
{
$this->request->validate([
'project_id' => 'required',
'type' => 'required|integer',
'content' => 'required',
'max_num' => 'required',
], [
'project_id.required' => '项目ID不能为空',
'type.required' => '确定数据类型不能为空',
'type.integer' => '确定数据类型不正确',
'content.required' => '确定数据不能为空',
'max_num.required' => '最大确认数量不能为空',
]);
try {
$data = GeoConfirm::saveContent($this->param['project_id'], $this->param['type'], $this->param['content'], $this->param['max_num']);
$friend = ProjectAssociation::where(['project_id' => $this->param['project_id']])->first();
if (empty($friend)){
$this->fail('项目未绑定微信群, 推送消息失败!');
}
$data = GeoConfirm::sendConfirmMessage($data->id, $friend->friend_id);
$this->response('success', Code::SUCCESS, $data);
} catch (\Exception $e) {
$this->fail('操作失败, error:' . $e->getMessage());
}
}
/**
* OA后台管理员,保存确认数据
... ...
... ... @@ -11,7 +11,7 @@ namespace App\Http\Controllers\Aside\Geo;
use App\Enums\Common\Code;
use App\Http\Controllers\Aside\BaseController;
use App\Http\Logic\Aside\Geo\GeoLogic;
use App\Http\Logic\Aside\Geo\GeoQuestionLogic;
use Illuminate\Http\Request;
/**
... ... @@ -26,7 +26,7 @@ class GeoQuestionController extends BaseController
public function __construct(Request $request)
{
parent::__construct($request);
$this->logic = new GeoLogic();
$this->logic = new GeoQuestionLogic();
}
/**
... ...
<?php
/**
* @remark :
* @name :GeoConfirmLogic.php
* @author :lyh
* @method :post
* @time :2025/10/25 11:36
*/
namespace App\Http\Logic\Aside\Geo;
use App\Enums\Common\Code;
use App\Http\Logic\Aside\BaseLogic;
use App\Models\Geo\GeoConfirm;
use App\Models\ProjectAssociation\ProjectAssociation;
/**
* @remark :用户确认信息
* @name :GeoConfirmLogic
* @author :lyh
* @method :post
* @time :2025/10/25 11:37
*/
class GeoConfirmLogic extends BaseLogic
{
public function __construct()
{
parent::__construct();
$this->param = $this->requestAll;
$this->model = new GeoConfirm();
}
/**
* @remark :保存数据->并推送微信群客户确认
* @name :saveConfirmContent
* @author :lyh
* @method :post
* @time :2025/10/25 11:41
*/
public function saveConfirmContent($param)
{
try {
$info = $this->model->read(['project_id' => $param['project_id']]);
if($info === false){
$id = $this->model->addReturnId($param);
}else{
$id = $param['id'];
$this->model->edit($param,['id'=>$info['id']]);
}
$friend = ProjectAssociation::where(['project_id' => $param['project_id']])->first();
if (empty($friend)){
$this->fail('项目未绑定微信群, 推送消息失败!');
}
GeoConfirm::sendConfirmMessage($id, $friend->friend_id);
} catch (\Exception $e) {
$this->fail('操作失败, error:' . $e->getMessage());
}
return $this->success(['id'=>$id]);
}
}
... ...
... ... @@ -4,109 +4,99 @@
* @name :GeoLogic.php
* @author :lyh
* @method :post
* @time :2025/7/2 17:51
* @time :2025/10/25 11:08
*/
namespace App\Http\Logic\Aside\Geo;
use App\Enums\Common\Code;
use App\Http\Logic\Aside\BaseLogic;
use App\Models\Geo\GeoPlatform;
use App\Models\Geo\GeoConf;
use App\Models\Geo\GeoQuestion;
use App\Models\Manage\ManageHr;
use App\Models\Project\KeywordPrefix;
use App\Models\Project\Project;
/**
* @remark :geo设置
* @name :GeoLogic
* @author :lyh
* @method :post
* @time :2025/10/25 11:08
*/
class GeoLogic extends BaseLogic
{
public function __construct()
{
parent::__construct();
$this->param = $this->requestAll;
$this->model = new GeoQuestion();
$this->model = new GeoConf();
}
/**
* @remark :设置geo状态
* @name :setGeoStatus
* @remark :获取geo设置数据详情
* @name :getCongInfo
* @author :lyh
* @method :post
* @time :2025/7/2 17:51
* @time :2025/10/25 11:10
*/
public function setGeoStatus(){
public function getCongInfo($project_id)
{
$projectModel = new Project();
$data = $projectModel->edit(['geo_status'=>$this->param['geo_status'],'geo_frequency'=>$this->param['geo_frequency']],['id'=>$this->param['project_id']]);
$questionModel = new GeoQuestion();
$questionModel->edit(['status'=>$this->param['geo_status']],['project_id'=>$this->param['project_id']]);
return $this->success($data);
$project_geo_conf = $projectModel->read(['id' => $project_id],['title', 'version', 'geo_status', 'geo_qualify_num']);
$geoConfModel = new GeoConf();
$geo_conf = $geoConfModel->read(['project_id' => $project_id]);
if($geo_conf === false){//数据未初始化
$geo_conf = [
'project_id' => $project_id, 'manager_id'=>0, 'company'=>$project_geo_conf['title'], 'brand'=>'', 'description'=>''
];
}
/**
* @remark :获取类型
* @name :getType
* @author :lyh
* @method :post
* @time :2025/7/3 10:47
*/
public function getType(){
$data['type'] = $this->model->brandType();
$data['frequency'] = $this->model->frequency;
$geoPlatformModel = new GeoPlatform();
$data['platform'] = $geoPlatformModel->getList();
return $this->success($data);
}
/**
* @remark :获取问题列表
* @name :getGeoQuestionList
* @author :lyh
* @method :post
* @time :2025/7/3 9:12
*/
public function getGeoQuestionList($map,$page,$row,$order,$field = ['*']){
$data = $this->model->lists($map,$page,$row,$order,$field);
if(!empty($data) && !empty($data['list'])){
foreach ($data['list'] as $key => $item){
$item['type_name'] = $this->model->brandType()[$item['type']];
$data['list'][$key] = $item;
//负责人集合
$geo_manage_list = $geoConfModel->geoManage();
// geo配置管理员,已经移除管理员列表,补充管理员信息
if ($geo_conf && $geo_conf['manager_id'] && empty($geo_manage_list[$geo_conf['manager_id']])) {
$manage = ManageHr::where(['id' => $geo_conf['manager_id']])->pluck('name', 'id')->toArray();
$geo_manage_list = array_merge($geo_manage_list, $manage);
}
}
return $this->success($data);
$result = [
'project_geo_conf' => $project_geo_conf,
'geo_conf' => $geo_conf,
'geo_manage_list' => $geo_manage_list,
'geo_keyword' => [
'prefix' => KeywordPrefix::getKeyword($project_id, KeywordPrefix::TYPE_GEO_PREFIX),
'suffix' => KeywordPrefix::getKeyword($project_id, KeywordPrefix::TYPE_GEO_SUFFIX),
],
];
$this->success($result);
}
/**
* @remark :保存数据
* @name :saveGeoQuestion
* @remark :保存数据详情
* @name :saveCongInfo
* @author :lyh
* @method :post
* @time :2025/7/3 9:47
* @param : question->提交的问题
* @param : url->提交的网址
* @param : keywords->提交的关键字
* @param : project_id->项目id
* @time :2025/10/25 11:14
* @param->gl_geo_conf : project_id->项目id;manager_id->管理员id;company->公司名称;brand->品牌名;description->描述(必传)
* @param :prefix->前缀;suffix->后缀(非必传)
* @param->gl_project : geo_status->开启/关闭状态 geo_qualify_num->达标数量
*/
public function saveGeoQuestion(){
//处理数据
$this->param['question'] = json_encode($this->param['question'] ?? [],true);
$this->param['url'] = json_encode($this->param['url'] ?? [],true);
$this->param['keywords'] = json_encode($this->param['keywords'] ?? [],true);
//执行时间设置为今天
if(isset($this->param['id']) && !empty($this->param['id'])){
$id = $this->param['id'];
$this->model->edit($this->param,['id'=>$id]);
public function saveConfig($param)
{
$projectModel = new Project();
$projectModel->edit(['geo_status'=>$param['geo_status'],'geo_qualify_num'=>$param['geo_qualify_num']],['id'=>$param['project_id']]);
try {
unset($param['geo_status'],$param['geo_qualify_num']);//无需保存
$info = $this->model->read(['project_id' => $param['project_id']]);
if($info === false){
$id = $this->model->addReturnId($param);
}else{
$this->param['next_time'] = date('Y-m-d');
$id = $this->model->addReturnId($this->param);
$id = $param['id'];
$this->model->edit($param,['id'=>$info['id']]);
}
} catch (\Exception $e) {
$this->fail('配置保存失败, error:' . $e->getMessage());
}
return $this->success(['id'=>$id]);
}
/**
* @remark :删除数据
* @name :delGeoQuestion
* @author :lyh
* @method :post
* @time :2025/7/3 10:13
*/
public function delGeoQuestion(){
$data = $this->model->del(['id'=>['in',$this->param['ids']]]);
return $this->success($data);
}
}
... ...
<?php
/**
* @remark :
* @name :GeoQuestionLogic.php
* @author :lyh
* @method :post
* @time :2025/7/2 17:51
*/
namespace App\Http\Logic\Aside\Geo;
use App\Http\Logic\Aside\BaseLogic;
use App\Models\Geo\GeoPlatform;
use App\Models\Geo\GeoQuestion;
use App\Models\Project\Project;
class GeoQuestionLogic extends BaseLogic
{
public function __construct()
{
parent::__construct();
$this->param = $this->requestAll;
$this->model = new GeoQuestion();
}
/**
* @remark :设置geo状态
* @name :setGeoStatus
* @author :lyh
* @method :post
* @time :2025/7/2 17:51
*/
public function setGeoStatus(){
$projectModel = new Project();
$data = $projectModel->edit(['geo_status'=>$this->param['geo_status'],'geo_frequency'=>$this->param['geo_frequency']],['id'=>$this->param['project_id']]);
$questionModel = new GeoQuestion();
$questionModel->edit(['status'=>$this->param['geo_status']],['project_id'=>$this->param['project_id']]);
return $this->success($data);
}
/**
* @remark :获取类型
* @name :getType
* @author :lyh
* @method :post
* @time :2025/7/3 10:47
*/
public function getType(){
$data['type'] = $this->model->brandType();
$data['frequency'] = $this->model->frequency;
$geoPlatformModel = new GeoPlatform();
$data['platform'] = $geoPlatformModel->getList();
return $this->success($data);
}
/**
* @remark :获取问题列表
* @name :getGeoQuestionList
* @author :lyh
* @method :post
* @time :2025/7/3 9:12
*/
public function getGeoQuestionList($map,$page,$row,$order,$field = ['*']){
$data = $this->model->lists($map,$page,$row,$order,$field);
if(!empty($data) && !empty($data['list'])){
foreach ($data['list'] as $key => $item){
$item['type_name'] = $this->model->brandType()[$item['type']];
$data['list'][$key] = $item;
}
}
return $this->success($data);
}
/**
* @remark :保存数据
* @name :saveGeoQuestion
* @author :lyh
* @method :post
* @time :2025/7/3 9:47
* @param : question->提交的问题
* @param : url->提交的网址
* @param : keywords->提交的关键字
* @param : project_id->项目id
*/
public function saveGeoQuestion(){
//处理数据
$this->param['question'] = json_encode($this->param['question'] ?? [],true);
$this->param['url'] = json_encode($this->param['url'] ?? [],true);
$this->param['keywords'] = json_encode($this->param['keywords'] ?? [],true);
//执行时间设置为今天
if(isset($this->param['id']) && !empty($this->param['id'])){
$id = $this->param['id'];
$this->model->edit($this->param,['id'=>$id]);
}else{
$this->param['next_time'] = date('Y-m-d');
$id = $this->model->addReturnId($this->param);
}
return $this->success(['id'=>$id]);
}
/**
* @remark :删除数据
* @name :delGeoQuestion
* @author :lyh
* @method :post
* @time :2025/7/3 10:13
*/
public function delGeoQuestion(){
$data = $this->model->del(['id'=>['in',$this->param['ids']]]);
return $this->success($data);
}
}
... ...
... ... @@ -23,33 +23,6 @@ class GeoConf extends Base
*/
protected $table = 'gl_project_geo_conf';
/**
* 保存GEO相关配置
* @param $project_id
* @param $manager_id
* @param $company
* @param $brand
* @param $description
* @param $prefix
* @param $suffix
* @return GeoConf
*/
public static function saveConf($project_id, $manager_id, $company, $brand, $description, $prefix, $suffix)
{
$data = self::where(compact('project_id'))->first();
if (empty($data)) {
$data = new self();
$data->project_id = $project_id;
}
$data->manager_id = $manager_id;
$data->company = $company;
$data->brand = $brand;
$data->description = $description;
$data->prefix = $prefix;
$data->suffix = $suffix;
$data->save();
return $data;
}
/**
* GEO 负责人集合
... ...
... ... @@ -60,26 +60,6 @@ class GeoConfirm extends Base
];
}
/**
* @param $project_id
* @param $type
* @param $content
* @param $max_num
* @return GeoConfirm
*/
public static function saveContent($project_id, $type, $content, $max_num)
{
$data = self::where(compact('project_id', 'type'))->first();
if (empty($data)) {
$data = new self();
$data->project_id = $project_id;
$data->type = $type;
}
$data->content = $content;
$data->max_num = $max_num;
$data->save();
return $data;
}
/**
* 保存确认数据
... ...
... ... @@ -8,6 +8,7 @@ use App\Models\Base;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Str;
/**
* Class InquiryFormData
... ... @@ -141,99 +142,103 @@ class InquiryFormData extends Base
];
$url_map = [
'luchfitness' => [
'https://www.ntsportgoods.com/supplier/nantong-luch-fitness-co-ltd',
'https://www.ntsportgoods.com/benches-machines-luch-fitness/',
'https://www.ntsportgoods.com/free-weight-luch-fitness/',
'https://www.ntsportgoods.com/functional-training-luch-fitness/s/',
'https://www.ntsportgoods.com/studio-exercise-luch-fitness/',
'https://www.ntsportgoods.com/commercial-gym-half-power-rack-for-strength-training-product',
'https://www.ntsportgoods.com/heavy-duty-fitness-flat-bench-for-home-commercial-gym-product',
'https://www.ntsportgoods.com/durable-gym-dumbbell-flat-bench-for-weight-training-product',
'https://www.ntsportgoods.com/rubber-colored-bumper-plate-for-olympic-weightlifting-product',
'https://www.ntsportgoods.com/urethane-competition-bumper-plate-for-strength-training-product',
'https://www.ntsportgoods.com/10-pair-dumbbell-storage-rack-for-commercial-gyms-product',
'https://www.ntsportgoods.com/tpu-coated-dumbbells-for-home-and-commercial-fitness-product',
'https://www.ntsportgoods.com/urethane-weight-plate-for-powerlifting-strength-gym-product',
'https://www.ntsportgoods.com/iphifun-cpu-weight-plate-for-professional-training-product',
'https://www.ntsportgoods.com/men-s-weightlifting-barbell-bar-for-strength-training-product',
'https://www.ntsportgoods.com/women-s-weightlifting-barbell-bar-for-olympic-lifts-product',
'https://www.ntsportgoods.com/steel-competition-kettlebell-for-functional-training-product',
'https://www.ntsportgoods.com/adjustable-strength-jump-plyo-boxes-for-gym-training-product',
'https://www.ntsportgoods.com/commercial-soft-plyo-box-for-functional-gym-training-product',
'https://www.ntsportgoods.com/power-training-weight-bull-bag-for-strength-workout-product',
'https://www.ntsportgoods.com/pu-leather-power-bag-for-functional-strength-training-product',
'https://www.ntsportgoods.com/abdominal-muscle-mat-for-core-and-sit-up-training-product',
'https://www.ntsportgoods.com/gymnastics-training-mat-for-fitness-and-yoga-workout-product',
'https://www.ntsportgoods.com/adjustable-bench-stepper-for-aerobic-and-strength-gym-product',
'https://www.ntsportgoods.com/rubber-body-pump-set-for-cardio-and-strength-training-product',
'https://www.ntsportgoods.com/balance-training-yoga-ball-for-core-stability-workout-product',
'https://www.ntsportgoods.com/pull-up-resistance-band-for-strength-and-stretching-product',
'/supplier/nantong-luch-fitness-co-ltd',
'/benches-machines-luch-fitness',
'/free-weight-luch-fitness',
'/functional-training-luch-fitness/s',
'/studio-exercise-luch-fitness',
'/commercial-gym-half-power-rack-for-strength-training-product',
'/heavy-duty-fitness-flat-bench-for-home-commercial-gym-product',
'/durable-gym-dumbbell-flat-bench-for-weight-training-product',
'/rubber-colored-bumper-plate-for-olympic-weightlifting-product',
'/urethane-competition-bumper-plate-for-strength-training-product',
'/10-pair-dumbbell-storage-rack-for-commercial-gyms-product',
'/tpu-coated-dumbbells-for-home-and-commercial-fitness-product',
'/urethane-weight-plate-for-powerlifting-strength-gym-product',
'/iphifun-cpu-weight-plate-for-professional-training-product',
'/men-s-weightlifting-barbell-bar-for-strength-training-product',
'/women-s-weightlifting-barbell-bar-for-olympic-lifts-product',
'/steel-competition-kettlebell-for-functional-training-product',
'/adjustable-strength-jump-plyo-boxes-for-gym-training-product',
'/commercial-soft-plyo-box-for-functional-gym-training-product',
'/power-training-weight-bull-bag-for-strength-workout-product',
'/pu-leather-power-bag-for-functional-strength-training-product',
'/abdominal-muscle-mat-for-core-and-sit-up-training-product',
'/gymnastics-training-mat-for-fitness-and-yoga-workout-product',
'/adjustable-bench-stepper-for-aerobic-and-strength-gym-product',
'/rubber-body-pump-set-for-cardio-and-strength-training-product',
'/balance-training-yoga-ball-for-core-stability-workout-product',
'/pull-up-resistance-band-for-strength-and-stretching-product',
],
'modernsporting' => [
'https://www.ntsportgoods.com/supplier/nantong-modern-sporting-industrial-co-ltdhttps://www.ntsportgoods.com/barbell-bars-modern-sporting/',
'https://www.ntsportgoods.com/storage-racks-modern-sporting/',
'https://www.ntsportgoods.com/dumbbells-modern-sporting/',
'https://www.ntsportgoods.com/rubber-plates-modern-sporting/',
'https://www.ntsportgoods.com/training-handles-modern-sporting/https://www.ntsportgoods.com/md4137-201cm-weightlifting-beginner-bar-product',
'https://www.ntsportgoods.com/md4143-220cm-hybrid-training-bar-product',
'https://www.ntsportgoods.com/md4149-powder-coated-pentagon-bar-product',
'https://www.ntsportgoods.com/gym-home-10-pairs-dumbbell-rack-stand-md6242-product',
'https://www.ntsportgoods.com/10-pairs-dumbbell-rack-for-home-gym-workouts-md6247-product',
'https://www.ntsportgoods.com/10-pairs-dumbbell-storage-rack-for-gym-home-md6250-product',
'https://www.ntsportgoods.com/urethane-dumbbells-set-for-strength-training-md2117-product',
'https://www.ntsportgoods.com/md2123-rubber-coated-studio-dumbbells-product',
'https://www.ntsportgoods.com/md2135-12-side-tpu-coated-dumbbells-product',
'https://www.ntsportgoods.com/rubber-bumper-plates-for-weightlifting-gym-use-md1056-product',
'https://www.ntsportgoods.com/high-quality-rubber-bumper-plates-for-gym-lifting-md1057-product',
'https://www.ntsportgoods.com/md1058-competition-weight-plates-product',
'https://www.ntsportgoods.com/tricep-press-down-bar-for-cable-machines-strength-md5128-product',
'https://www.ntsportgoods.com/md5132-tricep-press-down-bar-product',
'https://www.ntsportgoods.com/md5132-tricep-press-down-bar-product',
'/supplier/nantong-modern-sporting-industrial-co-ltd',
'/barbell-bars-modern-sporting',
'/storage-racks-modern-sporting',
'/dumbbells-modern-sporting',
'/rubber-plates-modern-sporting',
'/training-handles-modern-sporting',
'/md4137-201cm-weightlifting-beginner-bar-product',
'/md4143-220cm-hybrid-training-bar-product',
'/md4149-powder-coated-pentagon-bar-product',
'/gym-home-10-pairs-dumbbell-rack-stand-md6242-product',
'/10-pairs-dumbbell-rack-for-home-gym-workouts-md6247-product',
'/10-pairs-dumbbell-storage-rack-for-gym-home-md6250-product',
'/urethane-dumbbells-set-for-strength-training-md2117-product',
'/md2123-rubber-coated-studio-dumbbells-product',
'/md2135-12-side-tpu-coated-dumbbells-product',
'/rubber-bumper-plates-for-weightlifting-gym-use-md1056-product',
'/high-quality-rubber-bumper-plates-for-gym-lifting-md1057-product',
'/md1058-competition-weight-plates-product',
'/tricep-press-down-bar-for-cable-machines-strength-md5128-product',
'/md5132-tricep-press-down-bar-product',
'/md5132-tricep-press-down-bar-product',
],
'liveupsports' => [
'https://www.ntsportgoods.com/supplier/nantong-liveup-sports-co-ltd/',
'https://www.ntsportgoods.com/yoga-pilates-liveup-sports/',
'https://www.ntsportgoods.com/training-equipment-liveup-sports/',
'https://www.ntsportgoods.com/gym-racks-and-equipment-liveup-sports/',
'https://www.ntsportgoods.com/20-25-30cm-pvc-customised-pilates-stability-exercise-ball-inflatable-soft-mini-pilates-small-yoga-bal-product/',
'https://www.ntsportgoods.com/55-65-75cm-bloom-workout-fitness-exercise-balance-gym-abs-anti-burst-yoga-ball-anti-slip-swiss-pilates-ball-product/',
'https://www.ntsportgoods.com/bodybuilding-fitness-exercise-custom-logo-gym-yoga-latex-hip-resistance-bands-loop-bands-set-product/',
'https://www.ntsportgoods.com/bloom-2080x4-5cm-natural-latex-loop-yoga-elastic-stretch-long-resistance-bands-exercise-band-product/',
'https://www.ntsportgoods.com/custom-logo-manufacturer-high-quality-eco-friendly-fitness-pilates-anti-slip-3-10mm-pu-rubber-tpe-cork-nbr-pvc-printed-yoga-mat-product/',
'https://www.ntsportgoods.com/custom-professional-manufacture-cheap-solid-cast-iron-dumbbell-weights-rubber-hex-dumbbell-sets-5-100lb-product/',
'https://www.ntsportgoods.com/professional-wholesale-custom-logo-free-weight-colored-rubber-bumper-gym-weight-barbell-plates-with-kg-mark-product/',
'https://www.ntsportgoods.com/gym-equipment-free-weights-fitness-12-sided-weightlifting-exercise-barbell-weight-lifting-polyurethane-fixed-barbell-product/',
'https://www.ntsportgoods.com/livepro-high-quality-steel-fitness-equipment-training-competition-gym-power-weightlifting-20kg-barbell-bar-product/',
'https://www.ntsportgoods.com/livepro-gym-commercial-equipment-fitness-storage-system-professional-multifunctional-training-frame-gym-storage-rack-product/',
'https://www.ntsportgoods.com/livepro-commercial-floor-mount-free-standing-cross-training-gym-rigs-multi-functional-training-rack-fitness-gym-rig-product/',
'https://www.ntsportgoods.com/livepro-oem-odm-fitness-equipment-multi-functional-trainer-smith-machine-station-home-using-gym-full-frame-cage-squat-power-rack-product/',
'/supplier/nantong-liveup-sports-co-ltd',
'/yoga-pilates-liveup-sports',
'/training-equipment-liveup-sports',
'/gym-racks-and-equipment-liveup-sports',
'/20-25-30cm-pvc-customised-pilates-stability-exercise-ball-inflatable-soft-mini-pilates-small-yoga-bal-product',
'/55-65-75cm-bloom-workout-fitness-exercise-balance-gym-abs-anti-burst-yoga-ball-anti-slip-swiss-pilates-ball-product',
'/bodybuilding-fitness-exercise-custom-logo-gym-yoga-latex-hip-resistance-bands-loop-bands-set-product',
'/bloom-2080x4-5cm-natural-latex-loop-yoga-elastic-stretch-long-resistance-bands-exercise-band-product',
'/custom-logo-manufacturer-high-quality-eco-friendly-fitness-pilates-anti-slip-3-10mm-pu-rubber-tpe-cork-nbr-pvc-printed-yoga-mat-product',
'/custom-professional-manufacture-cheap-solid-cast-iron-dumbbell-weights-rubber-hex-dumbbell-sets-5-100lb-product',
'/professional-wholesale-custom-logo-free-weight-colored-rubber-bumper-gym-weight-barbell-plates-with-kg-mark-product',
'/gym-equipment-free-weights-fitness-12-sided-weightlifting-exercise-barbell-weight-lifting-polyurethane-fixed-barbell-product',
'/livepro-high-quality-steel-fitness-equipment-training-competition-gym-power-weightlifting-20kg-barbell-bar-product',
'/livepro-gym-commercial-equipment-fitness-storage-system-professional-multifunctional-training-frame-gym-storage-rack-product',
'/livepro-commercial-floor-mount-free-standing-cross-training-gym-rigs-multi-functional-training-rack-fitness-gym-rig-product',
'/livepro-oem-odm-fitness-equipment-multi-functional-trainer-smith-machine-station-home-using-gym-full-frame-cage-squat-power-rack-product',
],
'topflor' => [
'https://www.ntsportgoods.com/supplier/nantong-topflor-co-ltd/',
'https://www.ntsportgoods.com/sports-flooring-topflor/',
'https://www.ntsportgoods.com/healthcare-flooring-topflor/',
'https://www.ntsportgoods.com/gym-flooring-topflor/',
'https://www.ntsportgoods.com/sprint-track-turf-for-high-performance-indoor-and-outdoor-training-product/',
'https://www.ntsportgoods.com/durable-gym-rubber-flooring-with-shock-absorption-and-slip-resistance-product/',
'https://www.ntsportgoods.com/interlocking-gym-flooring-tilesinterlocking-gym-flooring-tiles-product/',
'https://www.ntsportgoods.com/premium-hospital-vinyl-flooring-with-anti-bacterial-and-easy-clean-surface-product/',
'https://www.ntsportgoods.com/high-performance-healthcare-flooring-for-safe-and-hygienic-environments-product/',
'https://www.ntsportgoods.com/homogeneous-vinyl-flooring-with-high-durability-and-low-maintenance-product/',
'https://www.ntsportgoods.com/clinic-vinyl-flooring-with-anti-bacterial-and-wear-resistant-properties-product/',
'https://www.ntsportgoods.com/medical-pvc-flooring-with-anti-slip-hygienic-and-durable-features-product/',
'https://www.ntsportgoods.com/professional-badminton-court-pvc-sports-flooring-with-high-grip-and-shock-absorption-product/',
'https://www.ntsportgoods.com/indoor-basketball-sports-flooring-with-superior-ball-bounce-and-player-comfort-product/',
'https://www.ntsportgoods.com/multi-sport-indoor-pvc-flooring-for-volleyball-handball-badminton-and-fitness-product/',
'https://www.ntsportgoods.com/durable-multi-purpose-sports-flooring-for-schools-gyms-and-community-centers-product/',
'https://www.ntsportgoods.com/high-performance-multi-use-indoor-sports-flooring-with-easy-maintenance-product/',
'/supplier/nantong-topflor-co-ltd',
'/sports-flooring-topflor',
'/healthcare-flooring-topflor',
'/gym-flooring-topflor',
'/sprint-track-turf-for-high-performance-indoor-and-outdoor-training-product',
'/durable-gym-rubber-flooring-with-shock-absorption-and-slip-resistance-product',
'/interlocking-gym-flooring-tilesinterlocking-gym-flooring-tiles-product',
'/premium-hospital-vinyl-flooring-with-anti-bacterial-and-easy-clean-surface-product',
'/high-performance-healthcare-flooring-for-safe-and-hygienic-environments-product',
'/homogeneous-vinyl-flooring-with-high-durability-and-low-maintenance-product',
'/clinic-vinyl-flooring-with-anti-bacterial-and-wear-resistant-properties-product',
'/medical-pvc-flooring-with-anti-slip-hygienic-and-durable-features-product',
'/professional-badminton-court-pvc-sports-flooring-with-high-grip-and-shock-absorption-product',
'/indoor-basketball-sports-flooring-with-superior-ball-bounce-and-player-comfort-product',
'/multi-sport-indoor-pvc-flooring-for-volleyball-handball-badminton-and-fitness-product',
'/durable-multi-purpose-sports-flooring-for-schools-gyms-and-community-centers-product',
'/high-performance-multi-use-indoor-sports-flooring-with-easy-maintenance-product',
],
];
foreach ($url_map as $k=>$urls) {
if(in_array($referer, $urls)) {
foreach ($urls as $url) {
if(Str::contains($referer, $url)){
return $mail_mobile_map[$k];
}
}
}
return $mail_mobile_map[array_rand($mail_mobile_map)];
}
... ...
... ... @@ -586,11 +586,14 @@ Route::middleware(['aloginauth'])->group(function () {
Route::any('/downloadGeoLink', [Aside\Geo\GeoLinkController::class, 'downloadGeoLink'])->name('admin.geo_link_downloadGeoLink');
Route::any('/daResultData', [Aside\Geo\GeoLinkController::class, 'daResultData'])->name('admin.geo_link_daResultData');
});
//geo设置
//geo信息详情设置
Route::prefix('conf')->group(function () {
Route::any('/getConfig', [Aside\Geo\GeoController::class, 'getConfig'])->name('admin.geo_conf_getConfig');
Route::any('/saveConfig', [Aside\Geo\GeoController::class, 'saveConfig'])->name('admin.geo_conf_saveConfig');
Route::any('/saveConfirmContent', [Aside\Geo\GeoController::class, 'saveConfirmContent'])->name('admin.geo_conf_saveConfirmContent');
});
//geo客户确认信息
Route::prefix('confirm')->group(function () {
Route::any('/saveConfirmContent', [Aside\Geo\GeoConfirmController::class, 'saveConfirmContent'])->name('admin.geo_confirm_saveConfirmContent');
});
});
// 任务相关
... ...