作者 董瑞恩
1 个管道 的构建 通过 耗费 0 秒

interface

... ... @@ -38,8 +38,6 @@ class AdminSetUpController extends AdminBaseController{
public function setupPost(){
$param=$this->request->param();
$param['update_time']=time();
$res=Db::name('set_up')->where('id',1)->update($param);
if ($res){
$this->success('保存完成');
... ...
... ... @@ -101,6 +101,35 @@ class UsersController extends HomeBaseController{
$this->apiResponse(200,'success',$data);
}
/**
* @title 获取计费规则
* @description 获取计费规则
* @author 董瑞恩
* @url /portal/users/bill_rules
* @method GET
*
* @return bill_rules:计费规则
*/
public function bill_rules(){
$data=Db::name('set_up')->field('bill_rules')->where('id',1)->find();
$data['bill_rules']=html_entity_decode($data['bill_rules']);
$this->apiResponse(200,'success',$data);
}
/**
* @title 获取使用须知
* @description 获取使用须知
* @author 董瑞恩
* @url /portal/users/directions
* @method GET
* @return directions:计费规则
*/
public function directions(){
$data=Db::name('set_up')->field('directions')->where('id',1)->find();
$data['directions']=html_entity_decode($data['directions']);
$this->apiResponse(200,'success',$data);
}
/**
* @title 用户查询订单列表
... ...