package configs import ( "log" ) var ( environment string Config_Img_Url string // 图片cdn地址 GYS_Login_Url string // 供应商登录地址 Config_Lottery_Url string // 彩票api接口 Config_Lottery_Username string // 彩票账户 Config_lottery_password string // 彩票密码 Config_Third_Party_Jingtong_Vender_Id uint // 景彤供应商id Config_Third_Party_Jingtong_Main_Category uint // 景彤主分类 Config_Third_Party_Jingtong_Sub_Category uint // 景彤子分类 Config_Unionpay_Verify_Sign_Cer string Config_Unionpay_Private_Pfx string Config_Unionpay_Private_Pfx_Pwd string Config_Unionpay_URL string Config_Unionpay_MerId string Config_Unionpay_Front string Config_Unionpay_Back string Config_Unionpay_RefundBack string // 聚水潭参数 ConfigJSTURL string //旺店通参数 ConfigWDTURl string //诺诺开票url参数 ConfigNuoURL string //诺诺开票身份认证 ConfigIdentity string //诺诺开票结果查询地址 ConfigNuoGetURL string // 诺诺开票企业税号 ConfigNuoTaxNum string //景彤邮件 ConfigJTEmail string //图文地址前缀url ConfigImageUrl string ConfigEsAddress string ) func IsProductionEnv() bool { return environment == "release" } func SetMode(ss string) { environment = ss } func init() { if IsProductionEnv() { log.Println("当前为正式版") Config_Img_Url = "https://jyycdn.reecook.cn/static" Config_Lottery_Url = "http://47.107.155.80:8080/LotterySystem/LotJsonService" Config_Lottery_Username = "bm0067" Config_lottery_password = "bm0067$3!O^C6BIoL&" GYS_Login_Url = "https://new.sp.reecook.cn/" Config_Third_Party_Jingtong_Vender_Id = 1495 Config_Third_Party_Jingtong_Main_Category = 183 Config_Third_Party_Jingtong_Sub_Category = 184 // 银联配置 Config_Unionpay_Verify_Sign_Cer = "./credentials/unionpay/public.cer" Config_Unionpay_Private_Pfx = "./credentials/unionpay/private.pfx" Config_Unionpay_Private_Pfx_Pwd = "170905" Config_Unionpay_URL = "https://gateway.95516.com/gateway/api/" Config_Unionpay_MerId = "802330253110569" Config_Unionpay_Front = "https://api.reecook.cn/api/v1/pay/unionpay/front/callback" Config_Unionpay_Back = "https://api.reecook.cn/api/v1/pay/unionpay/callback" Config_Unionpay_RefundBack = "https://api.reecook.cn/api/v1/pay/unionpay/refund/callback" // 聚水潭 ConfigJSTURL = "https://open.erp321.com/api/open/query.aspx" //旺店通 ConfigWDTURl = "http://wdt.wangdian.cn/openapi" //诺诺开票发票 ConfigNuoURL = "https://nnfp.jss.com.cn/shop/buyer/allow/cxfKp/cxfServerKpOrderSync.action" //诺诺身份认证 ConfigIdentity = "9D9F9F13858908468CD41D4C5483AE2E00D1ACFF51C27DF1" // 诺诺获取开票结果 ConfigNuoGetURL = "https://nnfp.jss.com.cn/shop/buyer/allow/ecOd/queryElectricKp.action" //诺诺企业税号 ConfigNuoTaxNum = "91330212MA2AE2QQXR" ConfigJTEmail = "zhjq@cn-recook.com" ConfigImageUrl = "https://jyycdn.reecook.cn/static" ConfigEsAddress = "http://127.0.0.1:9200/recook/_analyze?pretty=true" } else { log.Println("当前为测试版") Config_Img_Url = "https://testcdn.reecook.cn/static" Config_Lottery_Url = "http://115.28.166.108:8090/LotterySystem/LotJsonService" Config_Lottery_Username = "389912" Config_lottery_password = "389912" GYS_Login_Url = "http://testsp.reecook.cn/" Config_Third_Party_Jingtong_Vender_Id = 1468 Config_Third_Party_Jingtong_Main_Category = 141 Config_Third_Party_Jingtong_Sub_Category = 142 // 银联配置 Config_Unionpay_Verify_Sign_Cer = "./credentials/unionpay/verify_sign_acp.cer" Config_Unionpay_Private_Pfx = "./credentials/unionpay/700000000000001_acp.pfx" Config_Unionpay_Private_Pfx_Pwd = "000000" Config_Unionpay_URL = "https://gateway.test.95516.com/gateway/api/" Config_Unionpay_MerId = "777290058187720" Config_Unionpay_Front = "https://testapi.reecook.cn/api/v1/pay/unionpay/front/callback" Config_Unionpay_Back = "https://testapi.reecook.cn/api/v1/pay/unionpay/callback" Config_Unionpay_RefundBack = "https://testapi.reecook.cn/api/v1/pay/unionpay/refund/callback" //聚水潭 ConfigJSTURL = "https://open.erp321.com/api/open/query.aspx" // 旺店通 ConfigWDTURl = "http://47.92.239.46/openapi" //诺诺开票发票 http://nnfpbox.nuonuocs.cn/shop/buyer/allow/cxfKp/cxfServerKpOrderSync.action ConfigNuoURL = "http://nnfpbox.nuonuocs.cn/shop/buyer/allow/cxfKp/cxfServerKpOrderSync.action" //诺诺身份认证 //ConfigIdentity = "2329CC5F90EDAA8206F47A9EB2DAFDF4E06C61D327553FF1" ConfigIdentity = "2329CC5F90EDAA8208F1F3C72A0CE72A713A9D425CD50CDE" //诺诺获取开票结果 ConfigNuoGetURL = "https://nnfpbox.nuonuocs.cn/shop/buyer/allow/ecOd/queryElectricKp.action" //诺诺企业税号 //ConfigNuoTaxNum = "339901999999824" ConfigNuoTaxNum = "339901999999142" ConfigJTEmail = "792209833@qq.com" ConfigImageUrl = "https://testcdn.reecook.cn/static" ////诺诺身份认证 //ConfigIdentity = "9D9F9F13858908468CD41D4C5483AE2E00D1ACFF51C27DF1" ////诺诺获取开票结果 //ConfigNuoGetURL = "https://nnfp.jss.com.cn/shop/buyer/allow/ecOd/queryElectricKp.action" ////诺诺企业税号 //ConfigNuoTaxNum = "91330212MA2AE2QQXR" ConfigEsAddress = "http://127.0.0.1:9200/recook/_analyze?pretty=true" } } const ( Config_Aliyun_Ocr_AppCode = "1830f95365cb47488667ca1ef9aa9f6d" // 阿里云ocr appcode Config_Tianyan_Token = "e43c83dd-7bc2-4ddc-aa58-99ba0ed47dcd" // 天眼查token Config_lottery_redis_key = "list:lottery:bet" // redis队列key Config_Juhe_Creditcode_Key = "ce1aa9a5311096b3f8724bb32129609e" // email Config_Gys_Email_list_redis_key = "list:gys:email" // redis队列key // 供应商审核邮件配置 Config_Gys_Email_Setting_Smtp = "smtp.163.com" Config_Gys_Email_Setting_Port = 465 Config_Gys_Email_Setting_User = "shangmenghaishi" Config_Gys_Email_Setting_Pass = "MEXRPAYRODEZPCTB" Config_Gys_Email_Setting_Mail = "shangmenghaishi@163.com" // 景彤接口信息 Config_Jingtong_BaseUrl = "https://www.jtgloble.com/api.php" Config_Jingtong_Token = "8PrmSFF44MbdAGq0aCQBZ9fqbewE5wme" Config_Jingtong_Task_AddGoods_redis_key = "task:jingtong:addGodds" // redis队列key Config_Jingtong_Task_UpdateTask_redis_key = "task:jingtong:updateTask" // redis队列key Config_Gotenberg = "http://127.0.0.1:9001" // word转pdf // ConfigShowSwitch 是否显示会员推广相关 ConfigShowSwitch = 1 // ConfigJSTPrefix 聚水潭prefix ConfigJSTPrefix = "recook" ConfigJCookAppKey = "64f70e023a32e058a565650d74d44a7d" ConfigJCookAppSecret = "ca5f6cc561672968fab36c825fc78385" ConfigJCookAppChannelID = 1010273 ConfigJCookUrl = "http://jcook.com.cn/api/v1/open/" ConfigJCookMqUser = "jcook56214752165888" ConfigJCookMqPwd = "PD50Gw" ConfigJCookMqHost = "jcook.com.cn" ConfigJCookMqPort = "5672" ConfigShaMaAppKey = "64f70e023a32e058a565650d74d44a7d" ConfigShaMaAppSecret = "ca5f6cc561672968fab36c825fc78385" ConfigShaMaAppChannelID = 1010273 ConfigShaMaUrl = "http://shama.reecook.cn/api/v1/open/" ConfigShaMaMqUser = "jcook56214752165888" ConfigShaMaMqPwd = "PD50Gw" ConfigShaMaMqHost = "shama.reecook.cn" ConfigShaMaMqPort = "5672" )