管理后台->推广员->结算管理->推广提现->上传汇款证明--更新

master
chenxiaojun 5 years ago
parent 484216ae65
commit 5afd0ffd63

@ -801,11 +801,26 @@ class QueryController extends ThinkController
$data['msg'] = '请上传汇款证明';
return $data;
}
$downloadId = M('document_download')->where(array('file_id' => $transferProof))->getField('id');
if (empty($downloadId)) {
$fileData = M('File')->field('size,ext')->find($transferProof);
$downloadSave['content'] = '推广员提现订单汇款证明';
$downloadSave['file_id'] = $transferProof;
$downloadSave['size'] = $fileData['size'];
$downloadSave['parse'] = $fileData['ext'];
$downloadRes = M('document_download')->add($downloadSave);
if (!$downloadRes) {
$data['status'] = 0;
$data['msg'] = '保存失败';
return $data;
}
$downloadId = $downloadRes;
}
$map['id'] = $ids;
$map['status'] = 1;
$save['audit_time'] = time();
$save['status'] = $status;
$save['transfer_proof'] = $transferProof;
$save['transfer_proof'] = $downloadId;
$res = $withdraw->where($map)->save($save);
if ($res === false) {
$data['status'] = 0;

@ -366,3 +366,6 @@ ALTER TABLE `sys_shift_task` ADD COLUMN `remark` varchar(255) NOT NULL DEFAULT '
-- 2019-11-07 cxj
ALTER TABLE `platform_query`.`tab_withdraw` ADD COLUMN `transfer_proof` int(11) NOT NULL DEFAULT 0 COMMENT '汇款证明' AFTER `settlement_end_time`;
-- 2019-11-08 cxj
ALTER TABLE `platform`.`sys_document_download` MODIFY COLUMN `id` int(10) NOT NULL AUTO_INCREMENT COMMENT '文档ID' FIRST;
Loading…
Cancel
Save