|
|
|
@ -1712,6 +1712,10 @@ class DownloadController extends BaseController {
|
|
|
|
|
break;
|
|
|
|
|
case "提现明细":
|
|
|
|
|
$this->withdrawDtlExcelInfo($id,$map);
|
|
|
|
|
break;
|
|
|
|
|
case "汇款证明":
|
|
|
|
|
$this->remitCerDownLoad($id,$map);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
@ -2201,6 +2205,13 @@ class DownloadController extends BaseController {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function remitCerDownLoad($id,$map) {
|
|
|
|
|
$proof_id = $map['id'];
|
|
|
|
|
$file = new FileController();
|
|
|
|
|
$file->download($proof_id);
|
|
|
|
|
$this->backSuccessExport($id);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function withdrawDtlExcelInfo($id,$map) {
|
|
|
|
|
$xlsName = "提现记录";
|
|
|
|
|
$xlsCell = array(
|
|
|
|
@ -2625,6 +2636,39 @@ class DownloadController extends BaseController {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
/*
|
|
|
|
|
* 汇款证明
|
|
|
|
|
* */
|
|
|
|
|
public function Remittancecer() {
|
|
|
|
|
$id = $_REQUEST["id"];
|
|
|
|
|
$model = M("withdraw","tab_");
|
|
|
|
|
$res = $model->where(['id'=>$id])->field('transfer_proof,status')->find();
|
|
|
|
|
$transfer_proof = intval($res["transfer_proof"]);
|
|
|
|
|
$map = ['id'=>$transfer_proof];
|
|
|
|
|
$addtime = time();
|
|
|
|
|
$conditions = json_encode($map,TRUE);
|
|
|
|
|
$data = [
|
|
|
|
|
'logid' => 'remitrecord_'.time(),
|
|
|
|
|
'admin_id' => PID,
|
|
|
|
|
'type' => '/Home/Finance/withdrawRecord',
|
|
|
|
|
'dataname' => '汇款证明',
|
|
|
|
|
'status' => 0,
|
|
|
|
|
'addtime' => $addtime,
|
|
|
|
|
'begintime' => 0,
|
|
|
|
|
'content' => '',
|
|
|
|
|
'conditions' =>$conditions,
|
|
|
|
|
];
|
|
|
|
|
$log = M('downloadlog','tab_')->add($data);
|
|
|
|
|
if (!$log) {
|
|
|
|
|
$this->error('添加下载失败');
|
|
|
|
|
}
|
|
|
|
|
$this->success('添加下载成功',U('listsIndex'));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public function encryptDecrypt($key, $string, $decrypt){
|
|
|
|
|