作者 赵彬吉
... ... @@ -135,7 +135,7 @@ class Count extends Command
* @time :2023/6/14 15:44
*/
public function inquiry($arr,$domain,$project_id){
$inquiry_list = (new FormGlobalsoApi())->getInquiryList($domain,'',1,100000000);
$inquiry_list = (new FormGlobalsoApi())->getInquiryAll($domain);
if($inquiry_list == false){
return false;
}
... ... @@ -143,17 +143,9 @@ class Count extends Command
$arr['inquiry_num'] = 0;
$countryArr = [];
}else{
$arr['inquiry_num'] = $inquiry_list['data']['total'];
$arr['inquiry_num'] = $inquiry_list['data']['count'];
//询盘国家统计
$countryData = $inquiry_list['data']['data'];
$countryArr = [];
foreach ($countryData as $v1){
if(isset($countryArr[$v1['country']])){
$countryArr[$v1['country']]++;
}else{
$countryArr[$v1['country']] = 1;
}
}
$countryArr = $inquiry_list['data']['country'];
}
//加上其他询盘
ProjectServer::useProject($project_id);
... ...
... ... @@ -102,26 +102,17 @@ class CountAll extends Command
* @time :2023/6/14 15:44
*/
public function inquiry($arr,$domain,$project_id){
$inquiry_list = (new FormGlobalsoApi())->getInquiryList($domain,'',1,100000000);
$inquiry_list = (new FormGlobalsoApi())->getInquiryAll($domain);
if($inquiry_list == false){
return false;
}
echo date('Y-m-d H:i:s') . '拉取询盘状态:' .$inquiry_list['status'] . PHP_EOL;
if($inquiry_list['status'] == self::STATUS_ERROR){
$arr['inquiry_num'] = 0;
$countryArr = [];
}else{
$arr['inquiry_num'] = $inquiry_list['data']['total'];
$arr['inquiry_num'] = $inquiry_list['data']['count'];
//询盘国家统计
$countryData = $inquiry_list['data']['data'];
$countryArr = [];
foreach ($countryData as $v1){
if(isset($countryArr[$v1['country']])){
$countryArr[$v1['country']]++;
}else{
$countryArr[$v1['country']] = 1;
}
}
$countryArr = $inquiry_list['data']['country'];
}
//加上其他询盘
ProjectServer::useProject($project_id);
... ...
... ... @@ -145,25 +145,18 @@ class CountProject extends Command
* @time :2023/6/14 15:44
*/
public function inquiry($arr,$domain,$project_id){
$inquiry_list = (new FormGlobalsoApi())->getInquiryList($domain,'',1,100000000);
$inquiry_list = (new FormGlobalsoApi())->getInquiryAll($domain);
if($inquiry_list == false){
return false;
}
echo date('Y-m-d H:i:s') . '拉取询盘状态:' .json_encode($inquiry_list) . PHP_EOL;
if($inquiry_list['status'] == self::STATUS_ERROR){
$arr['inquiry_num'] = 0;
$countryArr = [];
}else{
$arr['inquiry_num'] = $inquiry_list['data']['total'];
$arr['inquiry_num'] = $inquiry_list['data']['count'];
//询盘国家统计
$countryData = $inquiry_list['data']['data'];
$countryArr = [];
foreach ($countryData as $v1){
if(isset($countryArr[$v1['country']])){
$countryArr[$v1['country']]++;
}else{
$countryArr[$v1['country']] = 1;
}
}
$countryArr = $inquiry_list['data']['country'];
}
//加上其他询盘
ProjectServer::useProject($project_id);
... ...
... ... @@ -85,7 +85,7 @@ class MonthAllCount extends Command
// 获取当月结束时间
$end = date('Y-m-t', strtotime($v['month']));
$arr['project_id'] = $project_id;
$res = $this->inquiry($url,$v['month']);
$res = (new FormGlobalsoApi())->getMonthInquiry($url,$v['month']);
$arr['total'] = $arr['month_total'] = 0;
if(isset($res['data']['count'])){
echo date('Y-m-d H:i:s') . '数据:'.$res['data']['count'] . PHP_EOL;
... ... @@ -191,13 +191,4 @@ class MonthAllCount extends Command
return $arr;
}
public function inquiry($url,$month){
$url = 'https://'.$url.'/';
$token = md5($url.date("Y-m-d"));
$url = 'https://form.globalso.com/api/external-interface/country_con/15243d63ed5a5738?domain='.$url.'&token='.$token.'&source=1,2,3,4&model=month&sta_date='.$month;
$res = http_get($url,['charset=utf-8']);
echo date('Y-m-d H:i:s') . '数据:'.json_encode($res) . PHP_EOL;
return $res;
}
}
... ...
... ... @@ -9,6 +9,7 @@
namespace App\Console\Commands\MonthlyCount;
use App\Helper\FormGlobalsoApi;
use App\Models\Com\UpdateOldInfo;
use App\Models\Domain\DomainInfo;
use App\Models\Inquiry\InquiryFormData;
... ... @@ -108,7 +109,7 @@ class MonthCount extends Command
// 获取当月结束时间
$end = date('Y-m-t', strtotime($v['month']));
$arr['project_id'] = $project_id;
$res = $this->inquiry($url,$v['month']);
$res = (new FormGlobalsoApi())->getMonthInquiry($url,$v['month']);
$arr['total'] = $arr['month_total'] = 0;
if(isset($res['data']['count'])){
echo date('Y-m-d H:i:s') . '数据:'.$res['data']['count'] . PHP_EOL;
... ... @@ -212,13 +213,4 @@ class MonthCount extends Command
return $arr;
}
public function inquiry($url,$month){
$url = 'https://'.$url.'/';
$token = md5($url.date("Y-m-d"));
$url = 'https://form.globalso.com/api/external-interface/country_con/15243d63ed5a5738?domain='.$url.'&token='.$token.'&source=1,2,3,4&model=month&sta_date='.$month;
$res = http_get($url,['charset=utf-8']);
echo date('Y-m-d H:i:s') . '数据:'.json_encode($res) . PHP_EOL;
return $res;
}
}
... ...
... ... @@ -80,11 +80,10 @@ class MonthProjectCount extends Command
// 获取当月结束时间
$end = date('Y-m-t', strtotime($v));
$arr['project_id'] = $project_id;
$res = $this->inquiry($url,$v);
$res = (new FormGlobalsoApi())->getMonthInquiry($url,$v);
echo date('Y-m-d H:i:s') . '月份:'.$v. PHP_EOL;
$arr['total'] = $arr['month_total'] = 0;
if(isset($res['data']['count'])){
echo date('Y-m-d H:i:s') . '数据:'.$res['data']['count'] . PHP_EOL;
$arr['month_total'] = $res['data']['count'] + InquiryFormData::getCount([$start.' 00:00:00',$end.' 00:00:00']);
}
//获取上一个的count
... ... @@ -95,7 +94,6 @@ class MonthProjectCount extends Command
}else{
$arr['total'] = $arr['month_total'] + ($previousInfo['total'] ?? 0);
}
echo date('Y-m-d H:i:s') . '加上其他询盘:'.$arr['total'] . PHP_EOL;
$country = [];
if(isset($res['data']['data'])){
$country = $res['data']['data'];
... ... @@ -117,7 +115,6 @@ class MonthProjectCount extends Command
$firstDayOfNextMonth = date('Y-m-01 01:00:00', strtotime("$selectedDate +1 month"));
$arr['created_at'] = $firstDayOfNextMonth;
$arr['updated_at'] = $firstDayOfNextMonth;
// echo date('Y-m-d H:i:s') . '数据:'.json_encode($arr) . PHP_EOL;
$monthCountModel->insert($arr);
}else{
$monthCountModel->edit($arr,['id'=>$info['id']]);
... ... @@ -188,15 +185,6 @@ class MonthProjectCount extends Command
return $arr;
}
public function inquiry($url,$month){
$url = 'https://'.$url.'/';
$token = md5($url.date("Y-m-d"));
$url = 'https://form.globalso.com/api/external-interface/country_con/15243d63ed5a5738?domain='.$url.'&token='.$token.'&source=1,2,3,4&model=month&sta_date='.$month;
$res = http_get($url,['charset=utf-8']);
echo date('Y-m-d H:i:s') . '数据:'.json_encode($res) . PHP_EOL;
return $res;
}
/**
* @remark :补齐月份
* @name :fillMissingMonths
... ...
... ... @@ -35,6 +35,7 @@ use App\Models\Template\BTemplateCom;
use App\Services\AmazonS3Service;
use App\Services\ProjectServer;
use App\Utils\EncryptUtils;
use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
... ... @@ -56,6 +57,21 @@ class Demo extends Command
*/
protected $description = 'demo';
public function handle(){
$domain = "https://www.xawellauto.com/";
$token = md5($domain.date("Y-m-d"));
$url = "https://form.globalso.com/api/external-interface/domain_con/15243d63ed5a5738?domain=$domain&token=$token&source=1,2,3,4&num=15";
$url = $url."&sta_date=2024-07";
try {
$res = http_get($url,['charset=utf-8']);
} catch (\Exception | GuzzleException $e) {
errorLog('提交询盘信息失败', $domain, $e);
return false;
}
echo date('Y-m-d H:i:s') . '数据:'.json_encode($res) . PHP_EOL;
return $res;
}
// public function handle(){
// $projectModel = new Project();
// $list = $projectModel->list(['id'=>503]);
... ... @@ -89,26 +105,26 @@ class Demo extends Command
// DB::disconnect('custom_mysql');
// }
// }
public function handle(){
ProjectServer::useProject(503);
$newsCate = new NewsCategory();
$newsList = $newsCate->list();
foreach ($newsList as $v){
$data = [
'name'=>$v['name'],
'status'=>0,
'sort'=>$v['sort'],
'pid'=>$v['pid'],
'route'=>$v['alias'],
'project_id'=>503,
'operator_id'=>$v['operator_id'],
'create_id'=>1101,
'module_id'=>10,
];
$moduleCateModel = new CustomModuleCategory();
$id = $moduleCateModel->addReturnId($data);
RouteMap::setRoute($v['alias'],RouteMap::SOURCE_MODULE_CATE,$id,503);
}
DB::disconnect('custom_mysql');
}
// public function handle(){
// ProjectServer::useProject(503);
// $newsCate = new NewsCategory();
// $newsList = $newsCate->list();
// foreach ($newsList as $v){
// $data = [
// 'name'=>$v['name'],
// 'status'=>0,
// 'sort'=>$v['sort'],
// 'pid'=>$v['pid'],
// 'route'=>$v['alias'],
// 'project_id'=>503,
// 'operator_id'=>$v['operator_id'],
// 'create_id'=>1101,
// 'module_id'=>10,
// ];
// $moduleCateModel = new CustomModuleCategory();
// $id = $moduleCateModel->addReturnId($data);
// RouteMap::setRoute($v['alias'],RouteMap::SOURCE_MODULE_CATE,$id,503);
// }
// DB::disconnect('custom_mysql');
// }
}
... ...
... ... @@ -150,24 +150,15 @@ class Test extends Command
}
public function inquiry($arr,$domain,$project_id){
$inquiry_list = (new FormGlobalsoApi())->getInquiryList($domain,'',1,100000000);
$inquiry_list = (new FormGlobalsoApi())->getInquiryAll($domain);
if($inquiry_list['status'] == 400){
$arr['inquiry_num'] = 0;
$countryArr = [];
}else{
$arr['inquiry_num'] = $inquiry_list['data']['total'];
$arr['inquiry_num'] = $inquiry_list['data']['count'];
//询盘国家统计
$countryData = $inquiry_list['data']['data'];
$countryArr = [];
foreach ($countryData as $v1){
if(isset($countryArr[$v1['country']])){
$countryArr[$v1['country']]++;
}else{
$countryArr[$v1['country']] = 1;
}
}
$countryArr = $inquiry_list['data']['country'];
}
//加上其他询盘
$arr['inquiry_num'] += InquiryFormData::getCount();
$countryData = InquiryFormData::getCountryCount();
... ...
... ... @@ -155,5 +155,41 @@ class FormGlobalsoApi
return $res;
}
/**
* @remark :获取当前项目所有询盘及询盘国家
* @name :getInquiryAll
* @author :lyh
* @method :post
* @time :2024/8/15 14:16
*/
public function getInquiryAll($domain){
if (!(strpos($domain, 'https://') === 0)) {
$domain = 'https://'.$domain.'/';
}
$token = md5($domain.date("Y-m-d"));
$url = "https://form.globalso.com/api/external-interface/domain_con/15243d63ed5a5738?domain=$domain&token=$token&source=1,2,3,4&num=15";
try {
$res = http_get($url,['charset=utf-8']);
} catch (\Exception | GuzzleException $e) {
errorLog('提交询盘信息失败', $domain, $e);
return false;
}
return $res;
}
/**
* @remark :按月份统计询盘
* @name :inquiry
* @author :lyh
* @method :post
* @time :2024/8/16 10:16
*/
public function getMonthInquiry($url,$month){
$url = 'https://'.$url.'/';
$token = md5($url.date("Y-m-d"));
$url = 'https://form.globalso.com/api/external-interface/country_con/15243d63ed5a5738?domain='.$url.'&token='.$token.'&source=1,2,3,4&model=month&sta_date='.$month;
$res = http_get($url,['charset=utf-8']);
echo date('Y-m-d H:i:s') . '数据:'.json_encode($res) . PHP_EOL;
return $res;
}
}
... ...
... ... @@ -927,3 +927,5 @@ function base62_encode($num) {
}
... ...
... ... @@ -14,6 +14,7 @@ use App\Helper\Arr;
use App\Helper\FormGlobalsoApi;
use App\Models\Domain\DomainInfo;
use App\Models\HomeCount\Count;
use App\Models\HomeCount\MonthCount;
use App\Models\Inquiry\InquiryFormData;
use App\Models\Project\Project;
use App\Models\RankData\ExternalLinks;
... ... @@ -115,7 +116,7 @@ class OptimizationReportController extends BaseController
// 获取当前月的结束时间
$endTime = date('Y-m-t', strtotime($this->param['date']));
$arr = [];
$arr = $this->inquiryCount($arr,$startTime,$endTime,$domain);
$arr = $this->inquiryCount($arr,$startTime,$endTime,$domain,$project_id);
$arr = $this->flowCount($arr,$startTime,$endTime,$project_id);
$arr = $this->sourceCount($arr,$startTime,$endTime,$domain);
$arr['month'] = date('Y-m',time());
... ... @@ -131,42 +132,15 @@ class OptimizationReportController extends BaseController
* @method :post
* @time :2023/6/30 14:29
*/
public function inquiryCount(&$arr,&$startTime,&$endTime,$domain){
$inquiry_list = (new FormGlobalsoApi())->getInquiryList($domain,'',1,100000000);
if(!empty($inquiry_list)){
//总数
$arr['total'] = $inquiry_list['data']['total'] ?? 0;
//数据详情
$data = $inquiry_list['data']['data'] ?? '';
$arr['month_total'] = 0;
$countryArr = [];
if(isset($data) && !empty($data)){
foreach ($data as $v){
if(($startTime.' 00:00:00' <= $v['submit_time']) && $v['submit_time'] <= $endTime.' 23:59:59'){
$arr['month_total']++;
if(isset($countryArr[$v['country']])){
$countryArr[$v['country']]++;
}else{
$countryArr[$v['country']] = 1;
}
}
}
}
}
//加上其他询盘
$arr['total'] += InquiryFormData::getCount();
$arr['month_total'] += InquiryFormData::getCount([$startTime, $endTime]);
$countryData = InquiryFormData::getCountryCount([$startTime, $endTime]);
foreach ($countryData as $v1){
if(isset($countryArr[$v1['country']])){
$countryArr[$v1['country']] += $v1['count'];
}else{
$countryArr[$v1['country']] = $v1['count'];
}
public function inquiryCount(&$arr, &$startTime, $project_id){
$month = date('Y-m',strtotime($startTime));
$monthCountModel = new MonthCount();
$info = $monthCountModel->read(['project_id'=>$project_id,'month'=>$month]);
if($info !== false){
$arr['country'] = $info['country'];
$arr['total'] = $info['total'];
$arr['month_total'] = $info['month_total'];
}
arsort($countryArr);
$top20 = array_slice($countryArr, 0, 15, true);
$arr['country'] = $top20;
return $arr;
}
... ... @@ -350,9 +324,9 @@ class OptimizationReportController extends BaseController
public function pv_ip($domain){
$pv = (new VisitItem())->count();
$ip = (new Visit())->count();
$inquiry_list = (new FormGlobalsoApi())->getInquiryList($domain,'',1,100000000);
$inquiry_list = (new FormGlobalsoApi())->getInquiryAll($domain);
if(!empty($inquiry_list)){
$total = $inquiry_list['data']['total'] ?? 0;
$total = $inquiry_list['data']['count'] ?? 0;
}
return [
'total_pv'=>$pv,
... ...
... ... @@ -65,6 +65,7 @@ class CNoticeController extends BaseController
if($domain_info){
//判断是否已有更新进行中
$notify_model = new Notify();
$type = $is_sitemap == 1 ? Notify::TYPE_ALL_SITEMAP : $type;
$data = [
'project_id' => $project_id,
'type' => $type,
... ... @@ -90,6 +91,7 @@ class CNoticeController extends BaseController
$data['data'] = Arr::a2s(['domain'=>$domain,'url'=>$url,'language'=>$language]);
$data['status'] = $is_sitemap == 1 ? Notify::STATUS_FINISH_PAGE : Notify::STATUS_INIT;
$data['is_pull_html_zip'] = $is_sitemap == 1 ? Notify::IS_PULL_HTML_ZIP_TRUE : Notify::IS_PULL_HTML_ZIP_FALSE;
$notify_model->add($data);
}
}
... ...
<?php
/**
* @remark :
* @name :InquiryFieldController.php
* @author :lyh
* @method :post
* @time :2024/8/13 10:45
*/
namespace App\Http\Controllers\Bside\Inquiry;
use App\Enums\Common\Code;
use App\Http\Controllers\Bside\BaseController;
use App\Models\Inquiry\InquiryField;
/**
* @remark :詢盤字段映射
* @name :InquiryFieldController
* @author :lyh
* @method :post
* @time :2024/8/13 10:45
*/
class InquiryFieldController extends BaseController
{
/**
* @remark :詢盤字段映射
* @name :lists
* @author :lyh
* @method :post
* @time :2024/8/13 10:59
*/
public function lists(){
$inquiryModel = new InquiryField();
$lists = $inquiryModel->list($this->map);
$this->response('success',Code::SUCCESS,$lists);
}
/**
* @remark :保存數據
* @name :save
* @author :lyh
* @method :post
* @time :2024/8/13 11:13
*/
public function save(){
$this->request->validate([
'data'=>'required',
],[
'data.required' => 'data不能为空',
]);
$inquiryModel = new InquiryField();
foreach ($this->param['data'] as $v){
if(isset($v['id']) && !empty($v['id'])){
$inquiryModel->edit(['en_name'=>$v['en_name']],['id'=>$v['id']]);
}else{
$inquiryModel->addReturnId(['name'=>$v['name'], 'en_name'=>$v['en_name']]);
}
}
$this->response('success');
}
/**
* @remark :刪除數據
* @name :del
* @author :lyh
* @method :post
* @time :2024/8/13 11:14
*/
public function del(){
$this->request->validate([
'id'=>'required',
],[
'id.required' => 'name不能为空',
]);
$inquiryModel = new InquiryField();
$inquiryModel->del(['id'=>['in',$this->param['id']]]);
$this->response('success');
}
}
... ...
... ... @@ -254,6 +254,7 @@ class LoginController extends BaseController
}
//没有from_order_id的项目 进入演示版 运营中心
$arr['from_order_id'] = $arr['from_order_id'] ?? 0;
$arr['phone'] = $arr['phone'] ?? '';
if(!$arr['from_order_id']){
//有账号就直接登录, 没有账号创建账号登录
$user = (new User())->where('project_id', Project::DEMO_PROJECT_ID)->where('mobile', $arr['phone'])->first();
... ... @@ -277,16 +278,25 @@ class LoginController extends BaseController
'manager_id'=>0,
];
}else{
//有from_order_id, 找到对应的项目并登录账号
//有from_order_id, 找到对应的项目并登录对应账号
$project = (new Project())->read(['from_order_id'=>$arr['from_order_id'], 'delete_status' => Project::IS_DEL_FALSE]);
if(!$project){
$this->response('项目不存在,请联系管理员',Code::USER_ERROR);
}
$data = [
'project_id'=>$project['id'],
'manager_id'=>0,
];
$user = (new User())->where('project_id', $project['id'])->where('mobile', $arr['phone'])->first();
if(!$user){
$data = [
'project_id'=>$project['id'],
'manager_id'=>0,
];
}else{
$data = [
'user_id'=>$user['id'],
'manager_id'=>0,
];
}
}
$info = $logic->autologin($data);
$this->response('success',Code::SUCCESS,['info'=>$info]);
}
... ...
... ... @@ -174,7 +174,7 @@ class ProductController extends BaseController
$this->param['featured_status'] = $this->param['featured_status'] ?? 0;
if($this->param['featured_status'] != Category::STATUS_ACTIVE) {
$cateModel = new Category();
$featured_ids = $cateModel->where('title', 'like', 'Featured%')->pluck('id')->toArray();
$featured_ids = $cateModel->formatQuery(['title'=>['in',['Featured','featured']]])->pluck('id')->toArray();
if(!empty($featured_ids)){
$status = [];
if(isset($this->map['status'])){
... ...
... ... @@ -9,7 +9,7 @@
namespace App\Http\Logic\Aside\ExtensionModule;
use App\Http\Logic\Bside\BaseLogic;
use App\Http\Logic\Aside\BaseLogic;
use App\Models\ExtentModule\ExtensionModule;
use App\Models\ExtentModule\ExtensionModuleField;
use App\Services\ProjectServer;
... ... @@ -43,7 +43,8 @@ class ExtensionModuleLogic extends BaseLogic
if($info !== false){
$this->fail('当前拓展数据名称已存在');
}
$this->param['data'] = empty($this->param['data']) ? null : json_encode($this->param['data']);
$this->param['operator_id'] = $this->manager['id'];
$this->param['data'] = json_encode($this->param['data'] ?? []);
if(isset($this->param['id']) && !empty($this->param['id'])){
$id = $this->param['id'];
$this->model->edit($this->param,['id'=>$id]);
... ...
... ... @@ -905,7 +905,7 @@ class ProductLogic extends BaseLogic
$this->param['deleted_at'] = null;
$this->param['featured_status'] = $this->param['featured_status'] ?? 0;
if(($this->param['featured_status'] != Category::STATUS_ACTIVE)) {
$this->param['title'] = ['not like','Featured%'];
$this->param['title'] = ['in',['Featured','featured']];
}
unset($this->param['featured_status']);
$list = $categoryModel->list($this->param, ['sort', 'id'], ['id', 'pid', 'title']);
... ...
... ... @@ -38,6 +38,9 @@ class TranslateLogic extends BaseLogic
public function getTranslateList(){
$data = [];
if($this->param['url'] == 'All' || $this->param['url'] == 'other_all_text'){
if($this->param['url'] == 'other_all_text'){
$this->param['language_id'] = 0;
}
$info = $this->model->with('translate_data')->where(['url'=>$this->param['url'],'language_id'=>$this->param['language_id'],'type'=>$this->param['type']])->first();
if(!empty($info) && !empty($info['translate_data'])){
$translateInfo = json_decode($info['translate_data']['data'],JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
... ... @@ -271,6 +274,9 @@ class TranslateLogic extends BaseLogic
}
//解析路由
$sendData = $this->handleRoute($this->param['url']);
if($this->param['url'] == 'other_all_text'){
$this->param['language_id'] = 0;
}
DB::beginTransaction();
try {
$info = $this->model->read(['language_id'=>$this->param['language_id'],'url'=>$this->param['url'],'project_id'=>$this->user['project_id'],'type'=>$this->param['type']]);
... ...
... ... @@ -18,11 +18,12 @@ class Notify extends Base
const STATUS_ERROR = 9;
/**
* 类型 1:主站, 2:小语种, 3:amp
* 类型 1:主站, 2:小语种, 3:amp,4:sitemap
*/
const TYPE_MASTER = 1;
const TYPE_MINOR = 2;
const TYPE_AMP = 3;
const TYPE_ALL_SITEMAP = 4;
/**
* 路由
... ... @@ -41,6 +42,14 @@ class Notify extends Base
const ROUTE_PRODUCT_VIDEO_KEYWORD = 6;
/**
* 是否拉取HTML压缩包
* 0:默认不拉取
* 1:拉取
*/
const IS_PULL_HTML_ZIP_FALSE = 0;
const IS_PULL_HTML_ZIP_TRUE = 1;
/**
* 类型
* @return array
*/
... ...
... ... @@ -578,6 +578,13 @@ Route::middleware(['bloginauth'])->group(function () {
Route::any('/addModuleValue', [\App\Http\Controllers\Bside\ExtensionModule\ExtensionModuleController::class, 'addModuleValue'])->name('extension_module_addModuleValue');
Route::any('/editModuleValue', [\App\Http\Controllers\Bside\ExtensionModule\ExtensionModuleController::class, 'editModuleValue'])->name('extension_module_editModuleValue');
});
//自定义小语种文本信息
Route::prefix('inquiry_field')->group(function () {
Route::any('/', [\App\Http\Controllers\Bside\Inquiry\InquiryFieldController::class, 'lists'])->name('inquiry_field_lists');
Route::any('/save', [\App\Http\Controllers\Bside\Inquiry\InquiryFieldController::class, 'save'])->name('inquiry_field_save');
Route::any('/del', [\App\Http\Controllers\Bside\Inquiry\InquiryFieldController::class, 'del'])->name('inquiry_field_del');
});
});
//无需登录验证的路由组
Route::group([], function () {
... ...