- 当前 Bug 的表现(可附上截图)
- 预期表现
- 复现路径
- 提供一个最简复现 Demo
string url = “https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={0}&secret={1}”;
url = string.Format(url, appid, secret);
httpHelper hh = new httpHelper();
string json = hh.HttpGet(url);
string access_token = Regex.Match(json, “(?<=access_token\”:\").*?(?=\")").ToString();
if (access_token == “”)
{
context.Response.Write(ConnString.returnSJ(“false”, “获取失败!”, json, “null”, “data”, “1”));
}
else
{
url = “https://api.weixin.qq.com/wxa/getwxacodeunlimit?access_token={0}”;
url = string.Format(url, access_token);
string DataJson = string.Empty;
DataJson = “{”;
DataJson += string.Format("\“scene\”:\"{0}\",", openid);//所要传的参数用,分看
//DataJson += string.Format("\“width\”:\"{0}\",", 124);
DataJson += string.Format("\“page\”:\"{0}\"", “pages/user/login/getUserInfo”);//扫码所要跳转的地址,根路径前不要填加’/’,不能携带参数(参数请放在scene字段里),如果不填写这个字段,默认跳主页面
//DataJson += “\“line_color\”:{”;
//DataJson += string.Format("\“r\”:\"{0}\",", “0”);
//DataJson += string.Format("\“g\”:\"{0}\",", “0”);
//DataJson += string.Format("\“b\”:\"{0}\"", “0”);
//DataJson += “}”;
DataJson += “}”;
string image = hh.PostMoths(url, DataJson, _uid);
string pic = ImageMerge.CombinImage(tx, image, _uid);
conn.ExeProc(“Exec Pro_User_ShareImage '” + _uid + “’,’” + pic + “’”);
context.Response.Write(ConnString.returnSJ(“true”, “获取成功!”, “{\“U_ShareImage\”:\”" + imageserver + pic + “\”}", “null”, “data”, “1”));
}
你好,麻烦具体描述问题并提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)