123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313 |
- package com.ygj.yuemum.component;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.beans.factory.annotation.Value;
- import org.springframework.context.annotation.Configuration;
- /**
- * 常量
- *
- * @author pibigstar
- */
- @Configuration
- public class Constant {
- //此数据是读取的配置文件
- public static String NEWUSER_COUPON;
- public static String CONSULTTASK_COUPON;
- public static String DETECTIONTASK_COUPON;
- public static String RECHARGETASK_COUPON;
- public static String ROOT;
- public static String RESUMEFILE;
- public static String HTTPROOT;
- public static String HTTPHTMLROOT;
- public static String MODULEPATH;
- public static String PAYVOUCHER;
- public static String HTTPPAYVOUCHER;
- public static String APPID;
- public static String APPSECRET;
- public static String GRANT_TYPE;
- public static String JSAPI_TICKET_TYPE;
- public static String ACCESS_TOKEN_URL;
- public static String JSAPI_TICKET_URL;
- public static String JSCODE2SESSION;
- public static String SENDMESSAGEURL;
- public static String ORDERTEMPLATEID;
- public static String BOOKINGTEMPLATEID;
- public static String EXTRACTTEMPLATEID;
- public static String MINIAPPID;
- public static String MINIAPPSECRET;
- public static String PROMOTIONVOUCHER;
- public static String HTTPPROMOTIONVOUCHER;
- public static String QRCODE;
- public static String HTTPQRCODE;
- public static String BAIDUAK;
- public static String BAIDUSK;
- public static String AUTHHOST;
- public static String BANKCARD;
- public static String IMGBANKCARD;
- public static String HTTPIMGBANKCARD;
- public static String WPOPENID;
- public static String MDJAPIURL;
- public static String BIZOBJECTSERVICE;
- public static String BIZUSERSERVICE;
- public static String LOCALQRCODE;
- public static String DEMOQRCODE;
- public static String HTTPOPPQRCODE;
- public static String TESTQRCODE;
- public static String HTTTESTQRCODE;
- public static String BANNERIMGURL;
- public static String HTTPBANNERIMGURL;
- public static String DIANPINGIMGURL;
- public static String HTTPDIANPINGIMGURL;
- public static Integer LMP;
- public static Integer AGE;
- public static Integer MAXSCHOLARSHIPS;
- public static String FOLDER;
- //注入
- @Autowired(required = false)
- public void getQrcode(@Value("${file.qrcode}") String QRCODE) {
- Constant.QRCODE = QRCODE;
- }
- @Autowired(required = false)
- public void getHttpQrocde(@Value("${file.httpqrcode}") String HTTPQRCODE) {
- Constant.HTTPQRCODE = HTTPQRCODE;
- }
- @Autowired(required = false)
- public void getNewUserCoupon(@Value("${coupon.NewUserCoupon}") String NEWUSER_COUPON) {
- Constant.NEWUSER_COUPON = NEWUSER_COUPON;
- }
- @Autowired(required = false)
- public void getConsultTaskCoupon(@Value("${coupon.ConsultTaskCoupon}") String CONSULTTASK_COUPON) {
- Constant.CONSULTTASK_COUPON = CONSULTTASK_COUPON;
- }
- @Autowired(required = false)
- public void getDetectionTaskCoupon(@Value("${coupon.DetectionTaskCoupon}") String DETECTIONTASK_COUPON) {
- Constant.DETECTIONTASK_COUPON = DETECTIONTASK_COUPON;
- }
- @Autowired(required = false)
- public void getRechargeTaskCoupon(@Value("${coupon.NewUserCoupon}") String RECHARGETASK_COUPON) {
- Constant.RECHARGETASK_COUPON = RECHARGETASK_COUPON;
- }
- @Autowired(required = false)
- public void getROOT(@Value("${file.ROOT}") String ROOT) {
- Constant.ROOT = ROOT;
- }
- @Autowired(required = false)
- public void getResumeFile(@Value("${file.ResumeFile}") String RESUMEFILE) {
- Constant.RESUMEFILE = RESUMEFILE;
- }
- @Autowired(required = false)
- public void gethttpRoot(@Value("${file.httpRoot}") String HTTPROOT) {
- Constant.HTTPROOT = HTTPROOT;
- }
- @Autowired(required = false)
- public void gethttphtmlRoot(@Value("${file.httphtmlRoot}") String HTTPHTMLROOT) {
- Constant.HTTPHTMLROOT = HTTPHTMLROOT;
- }
- @Autowired(required = false)
- public void getmodulePath(@Value("${file.modulePath}") String MODULEPATH) {
- Constant.MODULEPATH = MODULEPATH;
- }
- @Autowired(required = false)
- public void getPayvoucher(@Value("${file.payvoucher}") String PAYVOUCHER) {
- Constant.PAYVOUCHER = PAYVOUCHER;
- }
- @Autowired(required = false)
- public void getHttppayvoucher(@Value("${file.httppayvoucher}") String HTTPPAYVOUCHER) {
- Constant.HTTPPAYVOUCHER = HTTPPAYVOUCHER;
- }
- @Autowired(required = false)
- public void getPromotionvoucher(@Value("${file.promotionvoucher}")String PROMOTIONVOUCHER) {
- Constant.PROMOTIONVOUCHER = PROMOTIONVOUCHER;
- }
- @Autowired(required = false)
- public void getHttppromotionvoucher(@Value("${file.httppromotionvoucher}")String HTTPPROMOTIONVOUCHER) {
- Constant.HTTPPROMOTIONVOUCHER = HTTPPROMOTIONVOUCHER;
- }
- @Autowired(required = false)
- public void getAPPID(@Value("${wechat.APPID}") String APPID) {
- Constant.APPID = APPID;
- }
- @Autowired(required = false)
- public void getAPPSECRET(@Value("${wechat.APPSECRET}") String APPSECRET) {
- Constant.APPSECRET = APPSECRET;
- }
- @Autowired(required = false)
- public void getGRANT_TYPE(@Value("${wechat.GRANT_TYPE}") String GRANT_TYPE) {
- Constant.GRANT_TYPE = GRANT_TYPE;
- }
- @Autowired(required = false)
- public void getJSAPI_TICKET_TYPE(@Value("${wechat.JSAPI_TICKET_TYPE}") String JSAPI_TICKET_TYPE) {
- Constant.JSAPI_TICKET_TYPE = JSAPI_TICKET_TYPE;
- }
- @Autowired(required = false)
- public void getACCESS_TOKEN_URL(@Value("${wechat.ACCESS_TOKEN_URL}") String ACCESS_TOKEN_URL) {
- Constant.ACCESS_TOKEN_URL = ACCESS_TOKEN_URL;
- }
- @Autowired(required = false)
- public void getJSAPI_TICKET_URL(@Value("${wechat.JSAPI_TICKET_URL}") String JSAPI_TICKET_URL) {
- Constant.JSAPI_TICKET_URL = JSAPI_TICKET_URL;
- }
- @Autowired(required = false)
- public void getJSCODE2SESSION(@Value("${wechat.JSCODE2SESSION}") String JSCODE2SESSION) {
- Constant.JSCODE2SESSION = JSCODE2SESSION;
- }
- @Autowired(required = false)
- public void getSENDMESSAGEURL(@Value("${wechat.SENDMESSAGEURL}") String SENDMESSAGEURL) {
- Constant.SENDMESSAGEURL = SENDMESSAGEURL;
- }
- @Autowired(required = false)
- public void getOrderTemplateid(@Value("${wechat.OrderTemplateid}") String ORDERTEMPLATEID) {
- Constant.ORDERTEMPLATEID = ORDERTEMPLATEID;
- }
- @Autowired(required = false)
- public void getBookingTemplateid(@Value("${wechat.BookingTemplateid}") String BOOKINGTEMPLATEID) {
- Constant.BOOKINGTEMPLATEID = BOOKINGTEMPLATEID;
- }
- @Autowired(required = false)
- public void getMINIAPPID(@Value("${wechat.MINIAPPID}") String MINIAPPID) {
- Constant.MINIAPPID = MINIAPPID;
- }
- @Autowired(required = false)
- public void getMINIAPPSECRET(@Value("${wechat.MINIAPPSECRET}") String MINIAPPSECRET) {
- Constant.MINIAPPSECRET = MINIAPPSECRET;
- }
- @Autowired(required = false)
- public void getBAIDUAK(@Value("${baidu.BAIDUAK}") String BAIDUAK) {
- Constant.BAIDUAK = BAIDUAK;
- }
- @Autowired(required = false)
- public void getBAIDUSK(@Value("${baidu.BAIDUSK}") String BAIDUSK) {
- Constant.BAIDUSK = BAIDUSK;
- }
- @Autowired(required = false)
- public void getBANKCARD(@Value("${baidu.BANKCARD}") String BANKCARD) {
- Constant.BANKCARD = BANKCARD;
- }
- @Autowired(required = false)
- public void getAUTHHOST(@Value("${baidu.AUTHHOST}") String AUTHHOST) {
- Constant.AUTHHOST = AUTHHOST;
- }
- @Autowired(required = false)
- public void getIMGBANKCARD(@Value("${file.IMGBANKCARD}") String IMGBANKCARD) {
- Constant.IMGBANKCARD = IMGBANKCARD;
- }
- @Autowired(required = false)
- public void getHTTPIMGBANKCARD(@Value("${file.HTTPIMGBANKCARD}") String HTTPIMGBANKCARD) {
- Constant.HTTPIMGBANKCARD = HTTPIMGBANKCARD;
- }
- @Autowired(required = false)
- public void getWPOPENID(@Value("${wechat.WPOPENID}") String WPOPENID) {
- Constant.WPOPENID = WPOPENID;
- }
- @Autowired(required = false)
- public void getEXTRACTTEMPLATEID(@Value("${wechat.ExtractTemplateid}") String EXTRACTTEMPLATEID) {
- Constant.EXTRACTTEMPLATEID = EXTRACTTEMPLATEID;
- }
- @Autowired(required = false)
- public void getMDJAPIURL(@Value("${api.MDJAPIURL}") String MDJAPIURL) {
- Constant.MDJAPIURL = MDJAPIURL;
- }
- @Autowired(required = false)
- public void getBIZOBJECTSERVICE(@Value("${api.BIZOBJECTSERVICE}") String BIZOBJECTSERVICE) {
- Constant.BIZOBJECTSERVICE = BIZOBJECTSERVICE;
- }
- @Autowired(required = false)
- public void getBIZUSERSERVICE(@Value("${api.BIZUSERSERVICE}") String BIZUSERSERVICE) {
- Constant.BIZUSERSERVICE = BIZUSERSERVICE;
- }
- @Autowired(required = false)
- public void getLOCALQRCODE(@Value("${file.LOCALQRCODE}") String LOCALQRCODE) {
- Constant.LOCALQRCODE = LOCALQRCODE;
- }
- @Autowired(required = false)
- public void getDEMOQRCODE(@Value("${file.DEMOQRCODE}") String DEMOQRCODE) {
- Constant.DEMOQRCODE = DEMOQRCODE;
- }
- @Autowired(required = false)
- public void getHTTPOPPQRCODE(@Value("${file.HTTPOPPQRCODE}") String HTTPOPPQRCODE) {
- Constant.HTTPOPPQRCODE = HTTPOPPQRCODE;
- }
- @Autowired(required = false)
- public void getTESTQRCODE(@Value("${file.TESTQRCODE}") String TESTQRCODE) {
- Constant.TESTQRCODE = TESTQRCODE;
- }
- @Autowired(required = false)
- public void getHTTTESTQRCODE(@Value("${file.HTTTESTQRCODE}") String HTTTESTQRCODE) {
- Constant.HTTTESTQRCODE = HTTTESTQRCODE;
- }
- @Autowired(required = false)
- public void getBANNERIMGURL(@Value("${file.BANNERIMGURL}") String BANNERIMGURL) {
- Constant.BANNERIMGURL = BANNERIMGURL;
- }
- @Autowired(required = false)
- public void getHTTPBANNERIMGURL(@Value("${file.HTTPBANNERIMGURL}") String HTTPBANNERIMGURL) {
- Constant.HTTPBANNERIMGURL = HTTPBANNERIMGURL;
- }
- @Autowired(required = false)
- public void getDIANPINGIMGURL(@Value("${file.DIANPINGIMGURL}") String DIANPINGIMGURL) {
- Constant.DIANPINGIMGURL = DIANPINGIMGURL;
- }
- @Autowired(required = false)
- public void getHTTPDIANPINGIMGURL(@Value("${file.HTTPDIANPINGIMGURL}") String HTTPDIANPINGIMGURL) {
- Constant.HTTPDIANPINGIMGURL = HTTPDIANPINGIMGURL;
- }
- @Autowired(required = false)
- public void getLMP(@Value("${college.LMP}") Integer LMP) {
- Constant.LMP = LMP;
- }
- @Autowired(required = false)
- public void getAGE(@Value("${college.AGE}") Integer AGE) {
- Constant.AGE = AGE;
- }
- @Autowired(required = false)
- public void getMAXSCHOLARSHIPS(@Value("${college.MAXSCHOLARSHIPS}") Integer MAXSCHOLARSHIPS) {
- Constant.MAXSCHOLARSHIPS = MAXSCHOLARSHIPS;
- }
- @Autowired(required = false)
- public void getMAXSCHOLARSHIPS(@Value("${chuanyun.OssFolder}") String OssFolder) {
- Constant.FOLDER = OssFolder;
- }
- }
|