|
|
@@ -173,12 +173,13 @@ public class SenInfoCheckUtil {
|
|
|
/**
|
|
|
* 获取二维码图片
|
|
|
*/
|
|
|
- public static void getShopQr(String shopId, HttpServletResponse response){
|
|
|
+ public static void getShopQr(String shopId,String shopTypeId, HttpServletResponse response){
|
|
|
String mpToken = getMpToken();
|
|
|
//获取二维码数据
|
|
|
String url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token="+mpToken;
|
|
|
Map<String,Object> map = Maps.newHashMap();
|
|
|
- map.put("scene",shopId);
|
|
|
+
|
|
|
+ map.put("scene","shopId="+shopId+"&shopTypeId="+shopTypeId);
|
|
|
CommonInfo one = commonInfoService.findOne(261);
|
|
|
if("是".equals(one.getValue())){
|
|
|
map.put("page","pages/index/index");
|
|
|
@@ -201,18 +202,18 @@ public class SenInfoCheckUtil {
|
|
|
/**
|
|
|
* 获取二维码图片
|
|
|
*/
|
|
|
- public static void getShopQr2(String shopId, HttpServletResponse response){
|
|
|
+ public static void getShopQr2(String shopId,String shopTypeId, HttpServletResponse response){
|
|
|
String mpToken = getMpToken();
|
|
|
//获取二维码数据
|
|
|
String url = "https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token="+mpToken;
|
|
|
Map<String,Object> map = Maps.newHashMap();
|
|
|
- map.put("scene",shopId);
|
|
|
+ map.put("scene","shopId="+shopId+"&shopTypeId="+shopTypeId);
|
|
|
CommonInfo one = commonInfoService.findOne(261);
|
|
|
if("是".equals(one.getValue())){
|
|
|
map.put("page","my/index/shop/index2");
|
|
|
}
|
|
|
- map.put("check_path",false);
|
|
|
- map.put("env_version","trial");
|
|
|
+// map.put("check_path",false);
|
|
|
+// map.put("env_version","trial");
|
|
|
map.put("width", 280);
|
|
|
String jsonString = JSON.toJSONString(map);
|
|
|
InputStream inputStream = sendPostBackStream(url, jsonString);
|