Exemplo n.º 1
0
 protected function log($uid)
 {
     $list = M('user_money_log')->where(['uid' => $uid])->order('id desc')->select();
     $moneyModel = new \Common\Model\UserMoneyModel();
     int_to_string($list, ['type' => $moneyModel->getType()]);
     $this->assign('_list', $list);
     $this->meta_title = '钱包日志';
     $this->display('log');
     exit;
 }
Exemplo n.º 2
0
 public function log($id)
 {
     $withdraw = M('user_money_withdraw')->find($id) or $this->error('找不到此提现记录!');
     int_to_string($withdraw, ['type' => ['', '支付宝', '银行卡'], 'status' => ['待处理', '已转账,待确认', '转账成功', '转账失败', '已关闭']]);
     $this->assign('withdraw', $withdraw);
     // 账单
     $list = M('user_money_log')->where(['uid' => $withdraw['uid']])->order('id desc')->select();
     $moneyModel = new \Common\Model\UserMoneyModel();
     int_to_string($list, ['type' => $moneyModel->getType()]);
     $this->assign('_bill', $list);
     // 提现日志
     $model = M()->table('zj_user_money_withdraw_log l')->join('zj_user u on u.uid=l.uid');
     $list = $model->where(['withdraw_id' => $id])->order('id')->select();
     int_to_string($list, ['type' => ['', '申请', '审核通过', '打款成功', '打款失败', '关闭']]);
     $this->assign('_list', $list);
     $this->meta_title = '提现详情';
     $this->display('log');
     exit;
 }