|
@@ -225,9 +225,12 @@ public class WeixinApiController extends ApiController {
|
|
String str = "{\"expire_seconds\": 2592000, \"action_name\": \"QR_STR_SCENE\", \"action_info\": {\"scene\": {\"scene_str\": \"ReportQR_"
|
|
String str = "{\"expire_seconds\": 2592000, \"action_name\": \"QR_STR_SCENE\", \"action_info\": {\"scene\": {\"scene_str\": \"ReportQR_"
|
|
+ reportId + "\"}}}";
|
|
+ reportId + "\"}}}";
|
|
ApiResult apiResult = QrcodeApi.create(str);
|
|
ApiResult apiResult = QrcodeApi.create(str);
|
|
- urlString = apiResult.getJson();
|
|
|
|
- JSONObject jdJson = JSON.parseObject(urlString);
|
|
|
|
- renderText(jdJson.getString("url"));
|
|
|
|
|
|
+ urlString = apiResult.getJson();
|
|
|
|
+ JSONObject jdJson = JSON.parseObject(urlString);
|
|
|
|
+ String fString = jdJson.getString("url");
|
|
|
|
+ reports.setQrCode(fString);
|
|
|
|
+ reports.update();
|
|
|
|
+ renderText(fString);
|
|
// String url = apiResult.getStr("url");
|
|
// String url = apiResult.getStr("url");
|
|
// urlString = url;
|
|
// urlString = url;
|
|
// reports.setQrCode(url);
|
|
// reports.setQrCode(url);
|