其余文件

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,67 @@
<?php
// +----------------------------------------------------------------------
// | likeshop开源商城系统
// +----------------------------------------------------------------------
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
// | gitee下载https://gitee.com/likeshop_gitee
// | github下载https://github.com/likeshop-github
// | 访问官网https://www.likeshop.cn
// | 访问社区https://home.likeshop.cn
// | 访问手册http://doc.likeshop.cn
// | 微信公众号likeshop技术社区
// | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用未经许可不能去除前后端官方版权标识
// | likeshop系列产品收费版本务必购买商业授权购买去版权授权后方可去除前后端官方版权标识
// | 禁止对系统程序代码以任何目的,任何形式的再发布
// | likeshop团队版权所有并拥有最终解释权
// +----------------------------------------------------------------------
// | author: likeshop.cn.team
// +----------------------------------------------------------------------
namespace app\shopapi\controller;
use app\common\basics\ShopApi;
use app\shopapi\logic\LoginLogic;
use app\common\server\JsonServer;
use app\shopapi\validate\LoginValidate;
/**
* 商家移动端账号登录
* Class Account
* @package app\shopapi\controller
*/
class Account extends ShopApi
{
public $like_not_need_login = ['login'];
/**
* @notes 账号密码登录
* @return \think\response\Json
* @author 段誉
* @date 2021/11/9 16:21
*/
public function login()
{
$post = $this->request->post();
(new LoginValidate())->goCheck();
$result = LoginLogic::accountLogin($post);
return JsonServer::success('登录成功', $result);
}
/**
* @notes 退出登录
* @return \think\response\Json
* @author 段誉
* @date 2021/11/9 15:49
*/
public function logout()
{
LoginLogic::logout($this->admin_id, $this->client);
return JsonServer::success();
}
}

View File

@ -0,0 +1,40 @@
<?php
// +----------------------------------------------------------------------
// | likeshop开源商城系统
// +----------------------------------------------------------------------
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
// | gitee下载https://gitee.com/likeshop_gitee
// | github下载https://github.com/likeshop-github
// | 访问官网https://www.likeshop.cn
// | 访问社区https://home.likeshop.cn
// | 访问手册http://doc.likeshop.cn
// | 微信公众号likeshop技术社区
// | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用未经许可不能去除前后端官方版权标识
// | likeshop系列产品收费版本务必购买商业授权购买去版权授权后方可去除前后端官方版权标识
// | 禁止对系统程序代码以任何目的,任何形式的再发布
// | likeshop团队版权所有并拥有最终解释权
// +----------------------------------------------------------------------
// | author: likeshop.cn.team
// +----------------------------------------------------------------------
namespace app\shopapi\controller;
use app\common\basics\ShopApi;
use app\common\server\ConfigServer;
use app\common\server\JsonServer;
class Config extends ShopApi
{
public $like_not_need_login = ["getPolicyAgreement"];
public function getPolicyAgreement()
{
$config = [
1 => ConfigServer::get('policy', 'service',''),
2 => ConfigServer::get('policy', 'privacy', ''),
3 => ConfigServer::get('policy', 'after_sale', '')
];
return JsonServer::success('', $config);
}
}

View File

@ -0,0 +1,96 @@
<?php
// +----------------------------------------------------------------------
// | likeshop开源商城系统
// +----------------------------------------------------------------------
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
// | gitee下载https://gitee.com/likeshop_gitee
// | github下载https://github.com/likeshop-github
// | 访问官网https://www.likeshop.cn
// | 访问社区https://home.likeshop.cn
// | 访问手册http://doc.likeshop.cn
// | 微信公众号likeshop技术社区
// | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用未经许可不能去除前后端官方版权标识
// | likeshop系列产品收费版本务必购买商业授权购买去版权授权后方可去除前后端官方版权标识
// | 禁止对系统程序代码以任何目的,任何形式的再发布
// | likeshop团队版权所有并拥有最终解释权
// +----------------------------------------------------------------------
// | author: likeshop.cn.team
// +----------------------------------------------------------------------
namespace app\shopapi\controller;
use app\common\basics\ShopApi;
use app\common\server\JsonServer;
use app\shopapi\logic\GoodsLogic;
/**
* 商品管理
*/
class Goods extends ShopApi {
/**
* @notes 商品列表
* @return \think\response\Json
* @author Tab
* @date 2021/11/10 11:16
*/
public function lists()
{
$params = $this->request->param();
$params['page_no'] = $this->page_no;
$params['page_size'] = $this->page_size;
$params['shop_id'] = $this->shop_id;
$result = (new GoodsLogic())->lists($params);
return JsonServer::success('', $result);
}
/**
* @notes 操作
* @return \think\response\Json
* @author Tab
* @date 2021/11/10 11:22
*/
public function operation()
{
if ($this->request->isAjax() || !$this->request->isPost()) {
return JsonServer::error("请求方式错误");
}
$result = (new GoodsLogic())->operation($this->shop_id, $this->request->post());
if($result){
return JsonServer::success('操作成功');
}
return JsonServer::error(GoodsLogic::getError());
}
/**
* @notes 商品详情
* @return \think\response\Json
* @author Tab
* @date 2021/11/10 14:17
*/
public function detail()
{
$result = (new GoodsLogic())->detail($this->request->get('id'));
return JsonServer::success('', $result);
}
/**
* @notes 商品编辑
* @return \think\response\Json
* @author Tab
* @date 2021/11/10 15:23
*/
public function edit()
{
if ($this->request->isAjax() || !$this->request->isPost()) {
return JsonServer::error("请求方式错误");
}
$result = (new GoodsLogic())->edit($this->request->post());
if($result){
return JsonServer::success('编辑成功');
}
return JsonServer::error(GoodsLogic::getError());
}
}

View File

@ -0,0 +1,61 @@
<?php
// +----------------------------------------------------------------------
// | likeshop开源商城系统
// +----------------------------------------------------------------------
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
// | gitee下载https://gitee.com/likeshop_gitee
// | github下载https://github.com/likeshop-github
// | 访问官网https://www.likeshop.cn
// | 访问社区https://home.likeshop.cn
// | 访问手册http://doc.likeshop.cn
// | 微信公众号likeshop技术社区
// | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用未经许可不能去除前后端官方版权标识
// | likeshop系列产品收费版本务必购买商业授权购买去版权授权后方可去除前后端官方版权标识
// | 禁止对系统程序代码以任何目的,任何形式的再发布
// | likeshop团队版权所有并拥有最终解释权
// +----------------------------------------------------------------------
// | author: likeshop.cn.team
// +----------------------------------------------------------------------
namespace app\shopapi\controller;
use app\common\basics\ShopApi;
use app\shopapi\logic\IndexLogic;
use app\common\server\JsonServer;
/**
* 商家移动端账号登录
* Class Account
* @package app\shopapi\controller
*/
class Index extends ShopApi
{
public $like_not_need_login = ['config','copyright'];
/**
* @notes 基础配置
* @return \think\response\Json
* @author 段誉
* @date 2021/11/13 17:12
*/
public function config()
{
return JsonServer::success('', IndexLogic::config());
}
/**
* @notes 版权资质
* @return \think\response\Json
* @author ljj
* @date 2022/2/22 11:10 上午
*/
public function copyright()
{
$shop_id = $this->shop_id;
$result = IndexLogic::copyright($shop_id);
return JsonServer::success('',$result);
}
}

View File

@ -0,0 +1,239 @@
<?php
// +----------------------------------------------------------------------
// | likeshop开源商城系统
// +----------------------------------------------------------------------
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
// | gitee下载https://gitee.com/likeshop_gitee
// | github下载https://github.com/likeshop-github
// | 访问官网https://www.likeshop.cn
// | 访问社区https://home.likeshop.cn
// | 访问手册http://doc.likeshop.cn
// | 微信公众号likeshop技术社区
// | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用未经许可不能去除前后端官方版权标识
// | likeshop系列产品收费版本务必购买商业授权购买去版权授权后方可去除前后端官方版权标识
// | 禁止对系统程序代码以任何目的,任何形式的再发布
// | likeshop团队版权所有并拥有最终解释权
// +----------------------------------------------------------------------
// | author: likeshop.cn.team
// +----------------------------------------------------------------------
namespace app\shopapi\controller;
use app\common\basics\ShopApi;
use app\common\server\JsonServer;
use app\shopapi\validate\VirtualDeliveryValidate;
use app\shopapi\logic\OrderLogic;
use app\shopapi\validate\OrderValidate;
/**
* 商家移动端订单管理控制器
* Class Order
* @package app\shopapi\controller
*/
class Order extends ShopApi
{
/**
* @notes 订单列表
* @return \think\response\Json
* @author ljj
* @date 2021/11/10 3:14 下午
*/
public function lists()
{
$get = $this->request->get();
$result = OrderLogic::lists($get, $this->page_no, $this->page_size, $this->shop_id);
return JsonServer::success('获取成功', $result);
}
/**
* @notes 订单详情
* @return \think\response\Json
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author ljj
* @date 2021/11/10 4:16 下午
*/
public function detail()
{
$get = $this->request->get();
$get['shop_id'] = $this->shop_id;
(new OrderValidate())->goCheck('detail', $get);
$result = OrderLogic::detail($get['id']);
return JsonServer::success('获取成功', $result);
}
/**
* @notes 取消订单
* @return \think\response\Json
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author ljj
* @date 2021/11/10 5:06 下午
*/
public function cancel()
{
$post = $this->request->post();
$post['shop_id'] = $this->shop_id;
(new OrderValidate())->goCheck('cancel', $post);
$result = OrderLogic::cancel($post['id'],$this->admin_id);
if (true !== $result) {
return JsonServer::error($result);
}
return JsonServer::success('操作成功');
}
/**
* @notes 删除订单
* @return \think\response\Json
* @author ljj
* @date 2021/11/10 5:37 下午
*/
public function del()
{
$post = $this->request->post();
$post['shop_id'] = $this->shop_id;
(new OrderValidate())->goCheck('del', $post);
OrderLogic::del($post['id'],$this->admin_id);
return JsonServer::success('操作成功');
}
/**
* @notes 修改地址
* @return \think\response\Json
* @author ljj
* @date 2021/11/10 6:36 下午
*/
public function editAddress()
{
$post = $this->request->post();
$post['shop_id'] = $this->shop_id;
(new OrderValidate())->goCheck('editAddress', $post);
OrderLogic::editAddress($post);
return JsonServer::success('操作成功');
}
/**
* @notes 获取地址详情
* @return \think\response\Json
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author ljj
* @date 2021/11/13 11:41 上午
*/
public function getAddress()
{
$get = $this->request->get();
$get['shop_id'] = $this->shop_id;
(new OrderValidate())->goCheck('getAddress', $get);
$result = OrderLogic::getAddress($get['id']);
return JsonServer::success('获取成功', $result);
}
/**
* @notes 发货
* @return \think\response\Json
* @author ljj
* @date 2021/11/11 10:27 上午
*/
public function delivery()
{
$post = $this->request->post();
$post['shop_id'] = $this->shop_id;
(new OrderValidate())->goCheck('delivery', $post);
$result = OrderLogic::delivery($post,$this->admin_id);
if (true !== $result) {
return JsonServer::error($result);
}
return JsonServer::success('操作成功');
}
/**
* @notes 获取物流公司列表
* @return \think\response\Json
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author ljj
* @date 2021/11/13 11:46 上午
*/
public function getExpress()
{
return JsonServer::success('获取成功', OrderLogic::getExpress());
}
/**
* @notes 确认收货
* @return \think\response\Json
* @author ljj
* @date 2021/11/11 10:56 上午
*/
public function confirm()
{
$post = $this->request->post();
$post['shop_id'] = $this->shop_id;
(new OrderValidate())->goCheck('confirm', $post);
OrderLogic::confirm($post['id'],$this->admin_id);
return JsonServer::success('操作成功');
}
/**
* @notes 查看物流
* @return \think\response\Json
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author ljj
* @date 2021/11/11 11:35 上午
*/
public function logistics()
{
$get = $this->request->get();
$get['shop_id'] = $this->shop_id;
(new OrderValidate())->goCheck('logistics', $get);
$result = OrderLogic::logistics($get['id']);
return JsonServer::success('获取成功', $result);
}
/**
* @notes 虚拟发货
* @return \think\response\Json|void
* @author 段誉
* @date 2022/4/20 17:53
*/
public function virtualDelivery()
{
$post = $this->request->post();
(new VirtualDeliveryValidate())->goCheck();
$result = OrderLogic::virtualDelivery($post, $this->admin_id);
if (false == $result) {
return JsonServer::error(OrderLogic::getError() ?: '发货失败');
}
return JsonServer::success('发货成功');
}
/**
* @notes 确认付款
* @return \think\response\Json
* @author ljj
* @date 2024/7/19 下午6:33
*/
public function confirmPay()
{
$post = $this->request->post();
if (!isset($post['order_id']) || empty($post['order_id'])) {
return JsonServer::error('参数缺失');
}
$result = OrderLogic::confirmPay($post['order_id'], $this->admin_id);
if(true !== $result) {
return JsonServer::error($result);
}
return JsonServer::success('确认成功');
}
}

View File

@ -0,0 +1,184 @@
<?php
// +----------------------------------------------------------------------
// | likeshop100%开源免费商用商城系统
// +----------------------------------------------------------------------
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
// | 开源版本可自由商用可去除界面版权logo
// | 商业版本务必购买商业授权,以免引起法律纠纷
// | 禁止对系统程序代码以任何目的,任何形式的再发布
// | gitee下载https://gitee.com/likeshop_gitee
// | github下载https://github.com/likeshop-github
// | 访问官网https://www.likeshop.cn
// | 访问社区https://home.likeshop.cn
// | 访问手册http://doc.likeshop.cn
// | 微信公众号likeshop技术社区
// | likeshop团队 版权所有 拥有最终解释权
// +----------------------------------------------------------------------
// | author: likeshopTeam
// +----------------------------------------------------------------------
namespace app\shopapi\controller;
use app\common\basics\ShopApi;
use app\common\server\JsonServer;
use app\shop\validate\BankValidate;
use app\shopapi\{
logic\ShopLogic,
validate\ShopDataSetValidate,
validate\ShopWithdrawValidate,
validate\AdminPasswordValidate
};
/**
* 商家控制器
* Class Shop
* @package app\shopapi\controller
*/
class Shop extends ShopApi{
/**
* @notes 获取商家可提现余额
* @return \think\response\Json
* @author cjhao
* @date 2021/11/10 16:16
*/
public function getShopInfo(){
$shop = (new ShopLogic)->getShopInfo($this->shop_id);
return JsonServer::success('', $shop);
}
/**
* @notes 获取提现信息
* @return \think\response\Json
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author cjhao
* @date 2021/11/10 16:30
*/
public function getWithdrawInfo(){
$result = (new ShopLogic)->getWithdrawInfo($this->shop_id);
return JsonServer::success('', $result);
}
/**
* @notes 提现操作
* @return \think\response\Json
* @author cjhao
* @date 2021/11/10 17:03
*/
public function withdraw(){
$post = $this->request->post();
$post['shop_id'] = $this->shop_id;
(new ShopWithdrawValidate())->goCheck('',$post);
$result = (new ShopLogic)->withdraw($post);
if(true === $result){
return JsonServer::success('提现成功');
}
return JsonServer::error($result );
}
/**
* @notes 提现记录
* @return \think\response\Json
* @throws \think\db\exception\DbException
* @author cjhao
* @date 2021/11/10 17:11
*/
public function withdrawLog(){
$list = (new ShopLogic)->withdrawLog($this->shop_id,$this->page_no,$this->page_size);
return JsonServer::success('', $list);
}
/**
* @notes 添加账户
* @return \think\response\Json
* @throws \think\db\exception\DbException
* @author cjhao
* @date 2021/11/10 18:26
*/
public function addBank(){
(new BankValidate())->goCheck('add');
$post = $this->request->post();
$post['shop_id'] = $this->shop_id;
(new ShopLogic)->addBank($post);
return JsonServer::success('添加成功');
}
/**
* @notes 获取银行卡
* @return \think\response\Json
* @author cjhao
* @date 2021/11/11 15:47
*/
public function getBank(){
(new BankValidate())->goCheck('id');
$id= $this->request->get('id');
$data= (new ShopLogic)->getBank($id,$this->shop_id);
return JsonServer::success('',$data);
}
/**
* @notes 编辑银行卡
* @return \think\response\Json
* @author cjhao
* @date 2021/11/10 18:40
*/
public function editBank(){
(new BankValidate())->goCheck('edit');
$post = $this->request->post();
$post['shop_id'] = $this->shop_id;
(new ShopLogic)->editBank($post);
return JsonServer::success('编辑成功');
}
/**
* @notes 删除银行卡
* @return \think\response\Json
* @author cjhao
* @date 2021/11/10 18:42
*/
public function delBank(){
(new BankValidate())->goCheck('id');
$id = $this->request->post('id');
(new ShopLogic)->delBank($id,$this->shop_id);
return JsonServer::success('删除成功');
}
/**
* @notes 设置商家信息
* @return \think\response\Json
* @author cjhao
* @date 2021/11/11 10:40
*/
public function shopSet(){
$post = $this->request->post();
(new ShopDataSetValidate())->goCheck('',['dataset'=>$post]);
(new ShopLogic)->shopSet($post,$this->shop_id);
return JsonServer::success('设置成功');
}
/**
* @notes 修改密码接口
* @return \think\response\Json
* @author cjhao
* @date 2021/11/11 16:11
*/
public function changePwd(){
$post = $this->request->post();
$post['admin_id'] = $this->admin_id;
(new AdminPasswordValidate())->goCheck('', $post);
$res = (new ShopLogic)->updatePassword($post, $this->shop_id);
if(true === $res){
return JsonServer::success('密码修改成功');
}
return JsonServer::error($res);
}
}

View File

@ -0,0 +1,80 @@
<?php
// +----------------------------------------------------------------------
// | likeshop100%开源免费商用商城系统
// +----------------------------------------------------------------------
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
// | 开源版本可自由商用可去除界面版权logo
// | 商业版本务必购买商业授权,以免引起法律纠纷
// | 禁止对系统程序代码以任何目的,任何形式的再发布
// | gitee下载https://gitee.com/likeshop_gitee
// | github下载https://github.com/likeshop-github
// | 访问官网https://www.likeshop.cn
// | 访问社区https://home.likeshop.cn
// | 访问手册http://doc.likeshop.cn
// | 微信公众号likeshop技术社区
// | likeshop团队 版权所有 拥有最终解释权
// +----------------------------------------------------------------------
// | author: likeshopTeam
// +----------------------------------------------------------------------
namespace app\shopapi\controller;
use app\common\basics\ShopApi;
use app\common\server\JsonServer;
use app\shopapi\logic\StatisticsLogic;
/**
* 数据逻辑层
* Class Statistics
* @package app\shopapi\controller
*/
class Statistics extends ShopApi{
/**
* @notes 工作台
* @return \think\response\Json
* @author cjhao
* @date 2021/11/11 15:14
*/
public function workbench(){
$data = (new StatisticsLogic)->workbench($this->shop_id);
return JsonServer::success('',$data);
}
/**
* @notes 交易分析
* @return \think\response\Json
* @author cjhao
* @date 2021/11/11 14:37
*/
public function trading(){
$data = (new StatisticsLogic)->trading($this->shop_id);
return JsonServer::success('',$data);
}
/**
* @notes 商品分析接口
* @param int $shop_id
* @return array
* @author cjhao
* @date 2021/11/11 14:38
*/
public function goodslist()
{
$data = (new StatisticsLogic())->goodslist($this->shop_id);
return JsonServer::success('',$data);
}
/**
* @notes 访问分析
* @return \think\response\Json
* @author cjhao
* @date 2021/11/11 14:43
*/
public function visit()
{
$data = (new StatisticsLogic())->visit($this->shop_id);
return JsonServer::success('',$data);
}
}

View File

@ -0,0 +1,43 @@
<?php
// +----------------------------------------------------------------------
// | likeshop开源商城系统
// +----------------------------------------------------------------------
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
// | gitee下载https://gitee.com/likeshop_gitee
// | github下载https://github.com/likeshop-github
// | 访问官网https://www.likeshop.cn
// | 访问社区https://home.likeshop.cn
// | 访问手册http://doc.likeshop.cn
// | 微信公众号likeshop技术社区
// | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用未经许可不能去除前后端官方版权标识
// | likeshop系列产品收费版本务必购买商业授权购买去版权授权后方可去除前后端官方版权标识
// | 禁止对系统程序代码以任何目的,任何形式的再发布
// | likeshop团队版权所有并拥有最终解释权
// +----------------------------------------------------------------------
// | author: likeshop.cn.team
// +----------------------------------------------------------------------
namespace app\shopapi\controller;
use app\common\basics\ShopApi;
use app\shopapi\logic\LoginLogic;
use app\common\server\JsonServer;
use app\shopapi\validate\LoginValidate;
/**
* 商家移动端账号登录
* Class Account
* @package app\shopapi\controller
*/
class Test extends ShopApi
{
public $like_not_need_login = ['login'];
public function test()
{
dd($this->shop_id);
}
}

View File

@ -0,0 +1,86 @@
<?php
// +----------------------------------------------------------------------
// | likeshop开源商城系统
// +----------------------------------------------------------------------
// | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
// | gitee下载https://gitee.com/likeshop_gitee
// | github下载https://github.com/likeshop-github
// | 访问官网https://www.likeshop.cn
// | 访问社区https://home.likeshop.cn
// | 访问手册http://doc.likeshop.cn
// | 微信公众号likeshop技术社区
// | likeshop系列产品在gitee、github等公开渠道开源版本可免费商用未经许可不能去除前后端官方版权标识
// | likeshop系列产品收费版本务必购买商业授权购买去版权授权后方可去除前后端官方版权标识
// | 禁止对系统程序代码以任何目的,任何形式的再发布
// | likeshop团队版权所有并拥有最终解释权
// +----------------------------------------------------------------------
// | author: likeshop.cn.team
// +----------------------------------------------------------------------
namespace app\shopapi\controller;
use app\common\basics\ShopApi;
use app\common\server\JsonServer;
use app\shopapi\logic\VerificationLogic;
use app\shopapi\validate\VerificationValidate;
use app\shopapi\logic\OrderLogic;
/**
* 自提核销
* Class Verification
* @package app\shopapi\controller
*/
class Verification extends ShopApi
{
/**
* @notes 核销订单
* @return \think\response\Json
* @author 段誉
* @date 2022/11/2 17:13
*/
public function lists()
{
$params = $this->request->get();
$result = VerificationLogic::lists($params, $this->page_no, $this->page_size, $this->shop_id);
return JsonServer::success('获取成功', $result);
}
/**
* @notes 订单详情
* @return \think\response\Json
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\DbException
* @throws \think\db\exception\ModelNotFoundException
* @author 段誉
* @date 2022/11/2 18:08
*/
public function detail()
{
$params = $this->request->get();
(new VerificationValidate())->goCheck('detail', ['shop_id' => $this->shop_id]);
$result = VerificationLogic::detail($params, $this->shop_id);
return JsonServer::success('', $result);
}
/**
* @notes 核销订单
* @return \think\response\Json
* @author 段誉
* @date 2022/11/2 17:11
*/
public function confirm()
{
$params = $this->request->post();
(new VerificationValidate())->goCheck('confirm', ['shop_id' => $this->shop_id]);
$result = VerificationLogic::verification($params, $this->shop);
if(false === $result) {
return JsonServer::error(OrderLogic::getError() ?: '操作失败');
}
return JsonServer::success('操作成功');
}
}