|
|
@ -415,7 +415,7 @@ class SafeController extends BaseController{
|
|
|
|
$bank = $_REQUEST["bank_card"]; //银行账号
|
|
|
|
$bank = $_REQUEST["bank_card"]; //银行账号
|
|
|
|
$bank_name = $_REQUEST["bank_name"]; //开户银行
|
|
|
|
$bank_name = $_REQUEST["bank_name"]; //开户银行
|
|
|
|
$bank_account = $_REQUEST['bank_account']; //银行账户名
|
|
|
|
$bank_account = $_REQUEST['bank_account']; //银行账户名
|
|
|
|
$agreementpic = $_REQUEST["agreementpic"];
|
|
|
|
$agreementpic = $_REQUEST["agreementpic"] ?? '';
|
|
|
|
$alipayaccount = $_REQUEST['alipay_account'];
|
|
|
|
$alipayaccount = $_REQUEST['alipay_account'];
|
|
|
|
$alipayrealname = $_REQUEST['alipay_real_name'];
|
|
|
|
$alipayrealname = $_REQUEST['alipay_real_name'];
|
|
|
|
|
|
|
|
|
|
|
@ -482,10 +482,10 @@ class SafeController extends BaseController{
|
|
|
|
$this->error('卡号格式错误');
|
|
|
|
$this->error('卡号格式错误');
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(empty($agreementpic)) {
|
|
|
|
// if(empty($agreementpic)) {
|
|
|
|
$this->error("补充协议不能为空");
|
|
|
|
// $this->error("补充协议不能为空");
|
|
|
|
return false;
|
|
|
|
// return false;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
if (empty($alipayaccount)) {
|
|
|
|
if (empty($alipayaccount)) {
|
|
|
|
$this->error('支付宝账户不能为空');
|
|
|
|
$this->error('支付宝账户不能为空');
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
@ -519,7 +519,7 @@ class SafeController extends BaseController{
|
|
|
|
$data['alipay_real_name'] = $alipayrealname;
|
|
|
|
$data['alipay_real_name'] = $alipayrealname;
|
|
|
|
|
|
|
|
|
|
|
|
// $data['agreementpic'] = $
|
|
|
|
// $data['agreementpic'] = $
|
|
|
|
$data['anothpic'] = $agreementpic;
|
|
|
|
$agreementpic ? $data['anothpic'] = $agreementpic : null;
|
|
|
|
$id = get_pid();
|
|
|
|
$id = get_pid();
|
|
|
|
$updateRs = M("promote","tab_")->where(['id'=>$id])->save($data);
|
|
|
|
$updateRs = M("promote","tab_")->where(['id'=>$id])->save($data);
|
|
|
|
if($updateRs) {
|
|
|
|
if($updateRs) {
|
|
|
|