Commit 415136d1 authored by hezhen's avatar hezhen

123

parent 7ca25e28
...@@ -7,6 +7,7 @@ import java.util.UUID; ...@@ -7,6 +7,7 @@ import java.util.UUID;
import com.xxfc.platform.summit.util.Sha1; import com.xxfc.platform.summit.util.Sha1;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import java.util.Map.Entry; import java.util.Map.Entry;
...@@ -18,6 +19,9 @@ public class WXjsService { ...@@ -18,6 +19,9 @@ public class WXjsService {
@Autowired @Autowired
JsTicketService jsTicketService; JsTicketService jsTicketService;
@Value("${wx.appid}")
private String wy_appid;
/** /**
* 生成js 微信调用配置参数 * 生成js 微信调用配置参数
* @param _wxShareUrl:回掉的地址 * @param _wxShareUrl:回掉的地址
...@@ -40,6 +44,7 @@ public class WXjsService { ...@@ -40,6 +44,7 @@ public class WXjsService {
data.put("timestamp", _wxTimestamp ); data.put("timestamp", _wxTimestamp );
data.put("jsapi_ticket", _wxJsapiTicket); data.put("jsapi_ticket", _wxJsapiTicket);
data.put("url", _wxShareUrl); data.put("url", _wxShareUrl);
data.put("appId", wy_appid);
// 加密获取signature // 加密获取signature
StringBuilder _wxBaseString = new StringBuilder(); StringBuilder _wxBaseString = new StringBuilder();
for (Entry<String, String> param : _wxMap.entrySet()) { for (Entry<String, String> param : _wxMap.entrySet()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment