zouxuan 2 tahun lalu
induk
melakukan
a4caee8148

+ 6 - 6
mec-student/src/main/java/com/ym/mec/student/controller/WechatController.java

@@ -43,11 +43,11 @@ public class WechatController extends BaseController {
 
 	@ApiOperation("获取签名")
 	@GetMapping(value = "/getSignature")
-	public Object getSignature(String url,String platForm) throws Exception {
-		if(StringUtils.isEmpty(platForm)){
-			platForm = "gym";
+	public Object getSignature(String url,String platform) throws Exception {
+		if(StringUtils.isEmpty(platform)){
+			platform = "gym";
 		}
-		Map<String, String> appIdMap = appidMap.get(platForm);
+		Map<String, String> appIdMap = appidMap.get(platform);
 
 		url = URLDecoder.decode(url);
 		String appId = appIdMap.get("appId");
@@ -83,8 +83,8 @@ public class WechatController extends BaseController {
 		map.put("appId", "wx80f175c0eb6836e9");
 		map.put("secret", "a9d779747dba9f4e82f19882debe3e93");
 		Map<String,String> map1 = new HashMap<>();
-		map.put("appId", "wx751141096e75a4ee");
-		map.put("secret", "e882d76c95d1613607a85338b1bed3ff");
+		map1.put("appId", "wx751141096e75a4ee");
+		map1.put("secret", "e882d76c95d1613607a85338b1bed3ff");
 		resultMap.put("gym",map);
 		resultMap.put("daya",map1);
 		return resultMap;