|
|
@ -801,11 +801,26 @@ class QueryController extends ThinkController
|
|
|
|
$data['msg'] = '请上传汇款证明';
|
|
|
|
$data['msg'] = '请上传汇款证明';
|
|
|
|
return $data;
|
|
|
|
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['id'] = $ids;
|
|
|
|
$map['status'] = 1;
|
|
|
|
$map['status'] = 1;
|
|
|
|
$save['audit_time'] = time();
|
|
|
|
$save['audit_time'] = time();
|
|
|
|
$save['status'] = $status;
|
|
|
|
$save['status'] = $status;
|
|
|
|
$save['transfer_proof'] = $transferProof;
|
|
|
|
$save['transfer_proof'] = $downloadId;
|
|
|
|
$res = $withdraw->where($map)->save($save);
|
|
|
|
$res = $withdraw->where($map)->save($save);
|
|
|
|
if ($res === false) {
|
|
|
|
if ($res === false) {
|
|
|
|
$data['status'] = 0;
|
|
|
|
$data['status'] = 0;
|
|
|
|