From 08c4d82b0027d56f865e8280dcdd8e0f9ad2457e Mon Sep 17 00:00:00 2001 From: yulingwei <2436953959@qq.com> Date: Tue, 4 Aug 2020 15:45:39 +0800 Subject: [PATCH] upt --- Application/Home/Controller/SafeController.class.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Application/Home/Controller/SafeController.class.php b/Application/Home/Controller/SafeController.class.php index c4ddb5e71..07ec33d96 100644 --- a/Application/Home/Controller/SafeController.class.php +++ b/Application/Home/Controller/SafeController.class.php @@ -415,7 +415,7 @@ class SafeController extends BaseController{ $bank = $_REQUEST["bank_card"]; //银行账号 $bank_name = $_REQUEST["bank_name"]; //开户银行 $bank_account = $_REQUEST['bank_account']; //银行账户名 - $agreementpic = $_REQUEST["agreementpic"]; + $agreementpic = $_REQUEST["agreementpic"] ?? ''; $alipayaccount = $_REQUEST['alipay_account']; $alipayrealname = $_REQUEST['alipay_real_name']; @@ -482,10 +482,10 @@ class SafeController extends BaseController{ $this->error('卡号格式错误'); return false; } - if(empty($agreementpic)) { - $this->error("补充协议不能为空"); - return false; - } + // if(empty($agreementpic)) { + // $this->error("补充协议不能为空"); + // return false; + // } if (empty($alipayaccount)) { $this->error('支付宝账户不能为空'); return false; @@ -519,7 +519,7 @@ class SafeController extends BaseController{ $data['alipay_real_name'] = $alipayrealname; // $data['agreementpic'] = $ - $data['anothpic'] = $agreementpic; + $agreementpic ? $data['anothpic'] = $agreementpic : null; $id = get_pid(); $updateRs = M("promote","tab_")->where(['id'=>$id])->save($data); if($updateRs) {