|
@@ -9,7 +9,6 @@ import cn.hutool.http.HttpUtil;
|
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
|
import com.ylx.common.config.WechatAccountConfig;
|
|
|
import com.ylx.common.exception.ServiceException;
|
|
|
-import com.ylx.common.utils.StringUtils;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.w3c.dom.Node;
|
|
@@ -198,7 +197,7 @@ public class WeChatUtil {
|
|
|
|
|
|
String url = " https://api.weixin.qq.com/cgi-bin/menu/create?access_token=" + token;
|
|
|
|
|
|
- String param = "{\"button\":[{\"type\":\"view\",\"name\":\"立即下单\",\"url\":\"http://www.soso.com/\"},{\"name\":\"更多\",\"sub_button\":[{\"type\":\"view\",\"name\":\"搜索\",\"url\":\"http://www.soso.com/\"},{\"type\":\"click\",\"name\":\"赞一下我们\",\"key\":\"V1001_GOOD\"}]}]}";
|
|
|
+ String param = "{\"button\":[{\"type\":\"view\",\"name\":\"立即下单\",\"url\":\"https://test.baoxianzhanggui.com/fragrance/\"},{\"name\":\"更多\",\"sub_button\":[{\"type\":\"view\",\"name\":\"搜索\",\"url\":\"https://test.baoxianzhanggui.com/fragrance/\"},{\"type\":\"click\",\"name\":\"赞一下我们\",\"key\":\"V1001_GOOD\"}]}]}";
|
|
|
String rs = HttpUtil.post(url, param);
|
|
|
Map<?, ?> map = JSONObject.parseObject(rs, Map.class);
|
|
|
|