0){ //分账 // if($set['wxsysalltype'] == 1){ // if(empty($set['wxmerchantid'])){ // show_json(0,'请设置公众号平台分账商户号'); // } // if(empty($set['wxmerchantname'])){ // show_json(0,'请设置公众号平台分账商户名称'); // } // }else if($set['wxsysalltype'] == 2){ // if(empty($set['wxallmid'])){ // show_json(0,'请设置公众号平台分账个人微信号'); // }else{ // $member = pdo_get('wlmerchant_member',array('id' => $set['wxallmid']),array('openid')); // if(empty($member['openid'])){ // show_json(0,'所选用户无微信公众号账户信息,请重选'); // } // } // } // if($set['appsysalltype'] == 1){ // if(empty($set['appmerchantid'])){ // show_json(0,'请设置小程序平台分账商户号'); // } // if(empty($set['appmerchantname'])){ // show_json(0,'请设置小程序平台分账商户名称'); // } // }else if($set['appsysalltype'] == 2){ // if(empty($set['appallmid'])){ // show_json(0,'请设置小程序平台分账个人微信号'); // }else{ // $member = pdo_get('wlmerchant_member',array('id' => $set['appallmid']),array('wechat_openid')); // if(empty($member['wechat_openid'])){ // show_json(0,'所选用户无微信小程序账户信息,请重选'); // } // } // } }else{ if($set['maxsetmoney'] > 0 && $set['maxsetmoney'] < $set['lowsetmoney']){ show_json(0,'最大提现金额必须大于最小提现金额'); } } $res1 = Setting::wlsetting_save($set, 'cashset'); if ($res1) { show_json(1); } else { show_json(0,'保存设置失败,请重试'); } } //获取设置信息 $cashset = Setting::wlsetting_read('cashset'); #1、获取微信支付方式列表 $weChat = pdo_getall(PDO_NAME."payment",['uniacid'=>$_W['uniacid'],'type'=>1],['id','name']); #2、获取支付宝支付方式列表 $aliPay = pdo_getall(PDO_NAME."payment",['uniacid'=>$_W['uniacid'],'type'=>2],['id','name']); //校验权限 $isAuth = Customized::init('allocation'); include wl_template('finace/cashset'); } }