小程序appid放到配置文件
This commit is contained in:
@@ -17,6 +17,7 @@ import com.yxt.yyth.api.lpkcustomer.LpkCustomerQuery;
|
||||
import com.yxt.yyth.api.lpkcustomer.LpkCustomerVo;
|
||||
import com.yxt.yyth.api.lpkcustomer.WxBindMobileDto;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
@@ -33,13 +34,18 @@ public class LpkCustomerService extends MybatisBaseService<LpkCustomerMapper, Lp
|
||||
|
||||
@Autowired
|
||||
private FileUploadComponent fileUploadComponent;
|
||||
@Value("${weixin.miniprogram.appid:wx4724e3a3c27f36b5}")
|
||||
String APP_ID;
|
||||
@Value("${weixin.miniprogram.secret:971fd3b8aa7b08ce3e8a5f3e502b1a8d}")
|
||||
String SECRET;
|
||||
|
||||
// 汇融惠享
|
||||
String APP_ID = "wx4724e3a3c27f36b5";
|
||||
String SECRET = "971fd3b8aa7b08ce3e8a5f3e502b1a8d";
|
||||
// String APP_ID = "wx4724e3a3c27f36b5";
|
||||
// String SECRET = "971fd3b8aa7b08ce3e8a5f3e502b1a8d";
|
||||
// 汇融云眼
|
||||
// String APP_ID = "wx11565021714ba796";
|
||||
// String SECRET = "eb511fbb5f864cdabc3d044b639814c9";
|
||||
// 汇融惠家
|
||||
// 汇融惠农
|
||||
// String APP_ID = "wx97c0a62c6d65207f";
|
||||
// String SECRET = "e4572da4407573213377cd00e422397d";
|
||||
private static final String WX_URL_LOGIN = "https://api.weixin.qq.com/sns/jscode2session?appid=APPID&secret=SECRET&js_code=JSCODE&grant_type=authorization_code ";
|
||||
|
||||
@@ -33,3 +33,7 @@ image:
|
||||
path: D:/works/projects/yxt/yxtgit/lipinka/yxt-yyth-biz/target/classes/static/upload/
|
||||
url:
|
||||
prefix: http:// 192.168.2.103:7201/upload/
|
||||
weixin:
|
||||
miniprogram:
|
||||
appid: wx97c0a62c6d65207f
|
||||
secret: e4572da4407573213377cd00e422397d
|
||||
@@ -27,3 +27,8 @@ image:
|
||||
prefix: https://supervise.yxtsoft.com/lpk/upload/
|
||||
import:
|
||||
filePath: D:/yxt-supervise-gf/upload/
|
||||
|
||||
weixin:
|
||||
miniprogram:
|
||||
appid: wx4724e3a3c27f36b5
|
||||
secret: 971fd3b8aa7b08ce3e8a5f3e502b1a8d
|
||||
@@ -32,3 +32,8 @@ image:
|
||||
path: /home/lzh/docker_data/nginx/html/lipinka/yyth-ui/upload/
|
||||
url:
|
||||
prefix: https://lpk.yyundong.com/upload/
|
||||
|
||||
weixin:
|
||||
miniprogram:
|
||||
appid: wx97c0a62c6d65207f
|
||||
secret: e4572da4407573213377cd00e422397d
|
||||
Reference in New Issue
Block a user