|
|
@@ -354,6 +354,17 @@ public class WxWeappInfoController extends BaseController { |
|
|
private void codeOperation(String appId, String userVersion, String userDesc, Long templateId) { |
|
|
private void codeOperation(String appId, String userVersion, String userDesc, Long templateId) { |
|
|
WxAppinfo appinfo = appinfoService.getByAppId(appId); |
|
|
WxAppinfo appinfo = appinfoService.getByAppId(appId); |
|
|
|
|
|
|
|
|
|
|
|
int iAppType = 0; |
|
|
|
|
|
String appTypeStr = userVersion.substring(0, 1); |
|
|
|
|
|
if(appTypeStr.equalsIgnoreCase("C")) |
|
|
|
|
|
iAppType = EnumAppType.C.getCode(); |
|
|
|
|
|
else if(appTypeStr.equalsIgnoreCase("B")) |
|
|
|
|
|
iAppType = EnumAppType.B.getCode(); |
|
|
|
|
|
if(!appinfo.getType().equals(iAppType)) { |
|
|
|
|
|
// 如果版本号与小程序的类型不一致,不提交版本 |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// get ext json |
|
|
// get ext json |
|
|
WxWeappExtSet extSetQ = new WxWeappExtSet(); |
|
|
WxWeappExtSet extSetQ = new WxWeappExtSet(); |
|
|
extSetQ.setAppId(appId); |
|
|
extSetQ.setAppId(appId); |
|
|
@@ -424,6 +435,18 @@ public class WxWeappInfoController extends BaseController { |
|
|
private void codeCommit(String appId, String userVersion, String userDesc, Long templateId) { |
|
|
private void codeCommit(String appId, String userVersion, String userDesc, Long templateId) { |
|
|
WxAppinfo appinfo = appinfoService.getByAppId(appId); |
|
|
WxAppinfo appinfo = appinfoService.getByAppId(appId); |
|
|
|
|
|
|
|
|
|
|
|
int iAppType = 0; |
|
|
|
|
|
String appTypeStr = userVersion.substring(0, 1); |
|
|
|
|
|
if(appTypeStr.equalsIgnoreCase("C")) |
|
|
|
|
|
iAppType = EnumAppType.C.getCode(); |
|
|
|
|
|
else if(appTypeStr.equalsIgnoreCase("B")) |
|
|
|
|
|
iAppType = EnumAppType.B.getCode(); |
|
|
|
|
|
|
|
|
|
|
|
if(!appinfo.getType().equals(iAppType)) { |
|
|
|
|
|
// 如果版本号与小程序的类型不一致,不提交版本 |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// get ext json |
|
|
// get ext json |
|
|
WxWeappExtSet extSetQ = new WxWeappExtSet(); |
|
|
WxWeappExtSet extSetQ = new WxWeappExtSet(); |
|
|
extSetQ.setAppId(appId); |
|
|
extSetQ.setAppId(appId); |
|
|
|