初始化代码
This commit is contained in:
17
application/api/model/CanRecharge.php
Normal file
17
application/api/model/CanRecharge.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace app\api\model;
|
||||
|
||||
use think\Model;
|
||||
use think\Db;
|
||||
|
||||
class CanRecharge extends Model
|
||||
{
|
||||
public function get_can_recharge_list()
|
||||
{
|
||||
$map = [];
|
||||
$map[] = ['is_delete', '=', 1];
|
||||
$list = Db::name('can_recharge')->field('crid,money,integral')->where($map)->select();
|
||||
return ['code' => 200, 'msg' => '获取成功', 'data' => $list];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user