array('mchid' => '', 'signkey' => '') ); } } if ($do == 'save_setting') { if (!$_W['isajax'] || !$_W['ispost']) { iajax(-1, '非法访问'); } $type = $_GPC['type']; if ($type != 'wechat') { iajax(-1, '参数错误'); } $param = $_GPC['param']; $param['account'] = $_W['acid']; $pay_setting[$type] = $param; $payment = iserializer($pay_setting); uni_setting_save('payment', $payment); iajax(0, '设置成功', url('account/display', array('do' => 'switch', 'uniacid' => $_W['uniacid']))); } template('wxapp/payment');