|
|
@@ -15,6 +15,7 @@ import com.fs.company.domain.CompanyUser;
|
|
|
import com.fs.framework.security.LoginUser;
|
|
|
import com.fs.framework.security.SecurityUtils;
|
|
|
import com.fs.framework.service.TokenService;
|
|
|
+import com.fs.his.domain.FsPayConfig;
|
|
|
import com.fs.huifuPay.domain.HuiFuQueryOrderResult;
|
|
|
import com.fs.huifuPay.sdk.opps.core.request.V2TradePaymentScanpayQueryRequest;
|
|
|
import com.fs.huifuPay.service.HuiFuService;
|
|
|
@@ -28,7 +29,10 @@ import com.fs.live.service.ILiveCompanyCodeService;
|
|
|
import com.fs.live.service.ILiveOrderService;
|
|
|
import com.fs.live.service.ILiveService;
|
|
|
import com.fs.live.vo.LiveListVo;
|
|
|
+import com.fs.system.domain.SysConfig;
|
|
|
+import com.fs.system.mapper.SysConfigMapper;
|
|
|
import com.fs.system.oss.OSSFactory;
|
|
|
+import com.fs.wx.miniapp.config.WxMaProperties;
|
|
|
import com.google.common.reflect.TypeToken;
|
|
|
import com.google.gson.Gson;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
@@ -343,6 +347,9 @@ public class LiveController extends BaseController
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private WxMaProperties properties;
|
|
|
+
|
|
|
@ApiOperation("生成微信小程序码")
|
|
|
@GetMapping("/getWxaCodeUnLimit")
|
|
|
@PreAuthorize("@ss.hasPermi('live:live:edit')")
|
|
|
@@ -350,9 +357,10 @@ public class LiveController extends BaseController
|
|
|
String url="https://api.weixin.qq.com/cgi-bin/stable_token";
|
|
|
HashMap<String, String> map = new HashMap<>();
|
|
|
map.put("grant_type","client_credential");
|
|
|
+
|
|
|
// 百域承品
|
|
|
- map.put("appid","wx44beed5640bcb1ba");
|
|
|
- map.put("secret","1bfcfa420f741801575a74d94752d014");
|
|
|
+ map.put("appid",properties.getConfigs().get(0).getAppid());
|
|
|
+ map.put("secret",properties.getConfigs().get(0).getSecret());
|
|
|
String accessToken = HttpUtils.endApi(url, null, map);
|
|
|
// 创建Gson对象
|
|
|
Gson gson = new Gson();
|