| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace app\admin\logic;
- use app\admin\model\dao\MoneyLog;
- use app\admin\model\dao\ScoreLog;
- use app\admin\model\dao\ShopOrder;
- use app\admin\model\dao\User;
- use app\common\model\BoxModel;
- use app\common\model\PayConfigModel;
- use app\common\model\UserMoneyModel;
- use think\facade\Cache;
- use think\facade\Db;
- class PayConfigLogic
- {
- public static function getList( $page, $limit, $where, $sort)
- {
- $count = (new PayConfigModel())
- ->where($where)
- ->count();
- $list = (new PayConfigModel())
- ->where($where)
- ->withAttr('channel', function ($val, $data) {
- return $val == 1 ? '支付宝' : '微信';
- })
- ->page($page, $limit)
- ->order($sort)
- ->select();
- return [$count, $list];
- }
- }
|