合同模块第一次上错误附件无法保存的问题修复

This commit is contained in:
hdm 2023-05-11 16:46:16 +08:00
parent b845b2af28
commit 96fbe7d219
2 changed files with 9 additions and 2 deletions

View File

@ -149,7 +149,7 @@
</td> </td>
<td colspan="5" style="line-height:inherit"> <td colspan="5" style="line-height:inherit">
<div class="layui-row" id="fileBox"> <div class="layui-row" id="fileBox">
<input type="hidden" id="fileBoxInput" name="file_ids" value=""> <input type="hidden" id="fileBoxInput" data-type="file" name="file_ids" value="">
</div> </div>
</td> </td>
</tr> </tr>

View File

@ -311,7 +311,14 @@ class Index extends BaseController
public function edit_password() public function edit_password()
{ {
if (request()->isAjax()) { if (request()->isAjax()) {
$param = get_params();
//下面部分代码可删除--------------
if($_SERVER['HTTP_HOST']=='oa.gougucms.com'){
return to_assign(1, 'Bad Man为什么总想着改别人的密码已记录IP抓住你了');
}
//上面部分代码可删除--------------
$param = get_params();
try { try {
validate(AdminCheck::class)->scene('editPwd')->check($param); validate(AdminCheck::class)->scene('editPwd')->check($param);
} catch (ValidateException $e) { } catch (ValidateException $e) {