VerificationController.php 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | likeshop100%开源免费商用商城系统
  4. // +----------------------------------------------------------------------
  5. // | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
  6. // | 开源版本可自由商用,可去除界面版权logo
  7. // | 商业版本务必购买商业授权,以免引起法律纠纷
  8. // | 禁止对系统程序代码以任何目的,任何形式的再发布
  9. // | gitee下载:https://gitee.com/likeshop_gitee
  10. // | github下载:https://github.com/likeshop-github
  11. // | 访问官网:https://www.likeshop.cn
  12. // | 访问社区:https://home.likeshop.cn
  13. // | 访问手册:http://doc.likeshop.cn
  14. // | 微信公众号:likeshop技术社区
  15. // | likeshop团队 版权所有 拥有最终解释权
  16. // +----------------------------------------------------------------------
  17. // | author: likeshopTeam
  18. // +----------------------------------------------------------------------
  19. namespace app\adminapi\controller\selffetch_shop;
  20. use app\adminapi\controller\BaseAdminController;
  21. use app\adminapi\lists\selffetch_shop\VerificationLists;
  22. use app\adminapi\logic\selffetch_shop\VerificationLogic;
  23. use app\adminapi\validate\selffetch_shop\VerificationValidate;
  24. class VerificationController extends BaseAdminController
  25. {
  26. /**
  27. * @notes 查看上门自提订单列表
  28. * @return \think\response\Json
  29. * @author ljj
  30. * @date 2021/8/12 11:37 上午
  31. */
  32. public function lists()
  33. {
  34. return $this->dataLists(new VerificationLists());
  35. }
  36. /**
  37. * @notes 提货核销
  38. * @return \think\response\Json
  39. * @throws \think\db\exception\DataNotFoundException
  40. * @throws \think\db\exception\DbException
  41. * @throws \think\db\exception\ModelNotFoundException
  42. * @author ljj
  43. * @date 2021/8/12 11:57 上午
  44. */
  45. public function verification()
  46. {
  47. $params = (new VerificationValidate())->post()->goCheck('verification', ['admin_info'=>$this->adminInfo]);
  48. $result = (new VerificationLogic())->verification($params);
  49. if (true !== $result) {
  50. if (is_array($result)) {
  51. return $this->success($result['msg'],[],10,1);
  52. }
  53. return $this->fail(VerificationLogic::getError());
  54. }
  55. return $this->success('操作成功',[],1,1);
  56. }
  57. /**
  58. * @notes 核销查询
  59. * @return \think\response\Json
  60. * @author ljj
  61. * @date 2021/8/27 10:27 上午
  62. */
  63. public function verificationQuery()
  64. {
  65. $params = (new VerificationValidate())->goCheck('verificationQuery');
  66. $result = (new VerificationLogic())->verificationQuery($params);
  67. return $this->success('',$result);
  68. }
  69. /**
  70. * @notes 查看核销详情
  71. * @return \think\response\Json
  72. * @author ljj
  73. * @date 2021/8/27 10:48 上午
  74. */
  75. public function verificationDetail()
  76. {
  77. $params = (new VerificationValidate())->goCheck('verificationDetail');
  78. $result = (new VerificationLogic())->verificationDetail($params);
  79. return $this->success('',$result);
  80. }
  81. }