Browse Source

[二维码][修改]:源码整理

release_toaliyun_real
Stormeye Wu 7 years ago
parent
commit
48267e044d
1 changed files with 10 additions and 1 deletions
  1. +10
    -1
      mallinkAdmin/src/main/java/com/iformall/controller/WxAppinfoController.java

+ 10
- 1
mallinkAdmin/src/main/java/com/iformall/controller/WxAppinfoController.java View File

@@ -11,6 +11,7 @@ import com.iformall.enums.EnumAppType;
import com.iformall.service.WxAppinfoService;
import com.iformall.service.wechat.FmOpenService;
import com.iformall.utils.Constant;
import com.iformall.utils.MaUtil;
import com.iformall.utils.QRCodeUtils;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
@@ -36,6 +37,9 @@ import java.util.Map;
public class WxAppinfoController extends BaseController {
private final Logger logger = LoggerFactory.getLogger(this.getClass());

@Autowired
private boolean isFmOpen;

@Autowired
private WxAppinfoService wxAppinfoService;

@@ -134,7 +138,12 @@ public class WxAppinfoController extends BaseController {
boolean isHyaline = true;
WxMaCodeLineColor color = new WxMaCodeLineColor("0", "0", "0");

WxMaService wxMaService = openService.getWxOpenComponentService().getWxMaServiceByAppid(appinfo.getAppId());
WxMaService wxMaService;
if(isFmOpen) {
wxMaService = openService.getWxOpenComponentService().getWxMaServiceByAppid(appinfo.getAppId());
} else {
wxMaService = MaUtil.getWeappService(appinfo);
}

String pathStr = "";
if (StringUtils.isNotBlank(sceneParam)) {


Loading…
Cancel
Save