其余文件

This commit is contained in:
2026-04-14 17:46:22 +08:00
parent 294b68fe37
commit 3691f4db22
1343 changed files with 189847 additions and 0 deletions

View File

@ -0,0 +1,121 @@
<?php
// +----------------------------------------------------------------------
// | LikeShop100%开源免费商用电商系统
// +----------------------------------------------------------------------
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
// | 开源版本可自由商用可去除界面版权logo
// | 商业版本务必购买商业授权,以免引起法律纠纷
// | 禁止对系统程序代码以任何目的,任何形式的再发布
// | Gitee下载https://gitee.com/likemarket/likeshopv2
// | 访问官网https://www.likemarket.net
// | 访问社区https://home.likemarket.net
// | 访问手册http://doc.likemarket.net
// | 微信公众号:好象科技
// | 好象科技开发团队 版权所有 拥有最终解释权
// +----------------------------------------------------------------------
// | Author: LikeShopTeam
// +----------------------------------------------------------------------
namespace app\admin\controller;
use app\admin\logic\SelectLinkLogic;
use app\common\basics\AdminBase;
use app\common\server\JsonServer;
class SelectLink extends AdminBase
{
/**
* @notes 选择链接
* @return mixed
*/
public function index()
{
$get = $this->request->get();
$selectValue = [
'link_type' => !empty($get['link_type']) && $get['link_type'] != 'undefined' ? $get['link_type'] : 0,
'link_address' => !empty($get['link_address']) && $get['link_address'] != 'undefined' ? $get['link_address'] : '',
'category_id' => !empty($get['category_id']) && $get['category_id'] != 'undefined' ? $get['category_id'] : null,
'mnp_original_id' => !empty($get['mnp_original_id']) && $get['mnp_original_id'] != 'undefined' ? $get['mnp_original_id'] : '',
'mnp_app_id' => !empty($get['mnp_app_id']) && $get['mnp_app_id'] != 'undefined' ? $get['mnp_app_id'] : '',
'mnp_path' => !empty($get['mnp_path']) && $get['mnp_path'] != 'undefined' ? $get['mnp_path'] : '',
'mnp_params' => !empty($get['mnp_params']) && $get['mnp_params'] != 'undefined' ? $get['mnp_params'] : '',
'mnp_version' => !empty($get['mnp_version']) && $get['mnp_version'] != 'undefined' ? $get['mnp_version'] : '',
];
return view('',['select_value'=>json_encode($selectValue, JSON_UNESCAPED_UNICODE)]);
}
/**
* @notes 获取基础页面
*/
public function getBasePage()
{
$base_page = SelectLinkLogic::getBasePage();
return JsonServer::success('',$base_page);
}
/**
* @notes 获取普通商品
*/
public function getOrdinaryGoods()
{
if ($this->request->isAjax()) {
$get = $this->request->get();
return JsonServer::success('',SelectLinkLogic::getOrdinaryGoods($get));
}
}
/**
* @notes 获取平台商品分类
*/
public function getPlatformGoodsCategory()
{
if ($this->request->isAjax()) {
$get = $this->request->get();
return JsonServer::success('',SelectLinkLogic::getPlatformGoodsCategory($get));
}
}
/**
* @notes 获取商家列表
*/
public function getShopList()
{
if ($this->request->isAjax()) {
$get = $this->request->get();
return JsonServer::success('',SelectLinkLogic::getShopList($get));
}
}
/**
* @notes 获取活动专区
*/
public function getActivityArea()
{
if ($this->request->isAjax()) {
$get = $this->request->get();
return JsonServer::success('',SelectLinkLogic::getActivityArea($get));
}
}
/**
* @notes 获取秒杀商品
*/
public function getSeckillGoods()
{
if ($this->request->isAjax()) {
$get = $this->request->get();
return JsonServer::success('',SelectLinkLogic::getSeckillGoods($get));
}
}
/**
* @notes 获取拼团商品
*/
public function getTeamGoods()
{
if ($this->request->isAjax()) {
$get = $this->request->get();
return JsonServer::success('',SelectLinkLogic::getTeamGoods($get));
}
}
}