TableDataLogic.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | likeadmin快速开发前后端分离管理后台(PHP版)
  4. // +----------------------------------------------------------------------
  5. // | 欢迎阅读学习系统程序代码,建议反馈是我们前进的动力
  6. // | 开源版本可自由商用,可去除界面版权logo
  7. // | gitee下载:https://gitee.com/likeshop_gitee/likeadmin
  8. // | github下载:https://github.com/likeshop-github/likeadmin
  9. // | 访问官网:https://www.likeadmin.cn
  10. // | likeadmin团队 版权所有 拥有最终解释权
  11. // +----------------------------------------------------------------------
  12. // | author: likeadminTeam
  13. // +----------------------------------------------------------------------
  14. namespace app\common\logic;
  15. use app\common\enum\PayEnum;
  16. use app\common\enum\RefundEnum;
  17. use app\common\model\labels\Labels;
  18. use app\common\model\recharge\RechargeOrder;
  19. use app\common\model\refund\RefundLog;
  20. use app\common\model\refund\RefundRecord;
  21. use app\common\service\pay\AliPayService;
  22. use app\common\service\pay\WeChatPayService;
  23. /**
  24. * 查询选项类数据
  25. * Class TableDataLogic
  26. * @package app\common\logic
  27. */
  28. class TableDataLogic extends BaseLogic
  29. {
  30. /**
  31. * @notes 标签列表
  32. */
  33. public static function labels()
  34. {
  35. return Labels::where('id','>',0)->field('id,label_name as name,id as value,"data_table_labels" as type_value')->select()->toArray();
  36. }
  37. }