master
yulingwei 4 years ago
parent 7d676b406f
commit 08c4d82b00

@ -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) {

Loading…
Cancel
Save