MODEL('config'); $data['sy_xcxappid'] = trim($_POST['sy_xcxappid']); $data['sy_wxxcx_iospay'] = isset($_POST['sy_wxxcx_iospay']) ? 1 : 2; $data['sy_xcx_contact'] = isset($_POST['sy_xcx_contact']) ? 1 : 2; $data['sy_xcxQrcode'] = isset($_POST['sy_xcxQrcode']) ? 1 : 2; $data['sy_xcxname'] = trim($_POST['sy_xcxname']); $data['sy_xcxpath'] = trim($_POST['sy_xcxpath']); $configM -> setConfig($data); $this->web_config(); $this->ACT_layer_msg('微信小程序配置成功!',9,$_SERVER['HTTP_REFERER'],2,1); } @include(DATA_PATH.'api/wxpay/wxpay_data.php'); if (isset($wxpaydata)){ $this->yunset('wxpaydata',$wxpaydata); } $this->yuntpl(array('admin/admin_xcx_wx')); } function getQrcode_action(){ if ($_GET['type']){ $jobM = $this->MODEL('job'); $job = $jobM->getInfo(array('state'=>1,'status'=>0,'r_status'=>1,'orderby'=>'id,desc'),array('field'=>'`id`')); if (!empty($job)){ $data = array( 'type' => $_GET['type'], 'id' => $job['id'] ); $xcxM = $this->MODEL('xcx'); $return = $xcxM->getQrcode($data); echo json_encode($return);die(); } } } } ?>