...
|
...
|
@@ -262,6 +262,29 @@ class Member extends WechatBase |
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 更多收益记录
|
|
|
* @throws \think\db\exception\DataNotFoundException
|
|
|
* @throws \think\db\exception\ModelNotFoundException
|
|
|
* @throws \think\exception\DbException
|
|
|
*/
|
|
|
public function more_earnings_log(){
|
|
|
$user_id = $this->request->param('user_id',0,'intval');
|
|
|
$page = $this->request->param('page',1,'intval');
|
|
|
$pageNum = $this->request->param('pageNum',5,'intval');
|
|
|
if(empty($user_id)){
|
|
|
$this->error('缺少必要参数');
|
|
|
}
|
|
|
$data = Db::name('user_exp_log')->where(['type'=>['in',[4,5]]])->order('id desc')->page($page,$pageNum)->select();
|
|
|
$exp_ratio = Db::name('exp_ratio')->where(['id'=>1])->find();
|
|
|
foreach($data as $key => $vo){
|
|
|
$data[$key]['createtime'] = date('Y年m月d日 H:i');
|
|
|
//转换为人民币
|
|
|
$data[$key]['rmb'] = round($vo['exp']*$exp_ratio['ratio']*0.01,2);
|
|
|
}
|
|
|
$this->success('SUCCESS',$data);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 提现记录页面
|
|
|
* @return mixed
|
|
|
* @throws \think\db\exception\DataNotFoundException
|
...
|
...
|
|