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