Commit 239dfe37 authored by 黎博's avatar 黎博

修复bug

parent 3062ffa8
...@@ -26,9 +26,6 @@ public class VccGenController { ...@@ -26,9 +26,6 @@ public class VccGenController {
if (status !=1 && status !=2 && status !=3 && status !=4) { if (status !=1 && status !=2 && status !=3 && status !=4) {
return JsonResult.clientFailed("状态值必须是1、2、3、4中的一个!"); return JsonResult.clientFailed("状态值必须是1、2、3、4中的一个!");
} }
// if (!channel.equals("214") && !channel.equals("217")) {
// return JsonResult.clientFailed("渠道必须为214或217");
// }
VccOpenResultVo result = vccDataService.makeVccUser(namespace, phoneNo, channel, status); VccOpenResultVo result = vccDataService.makeVccUser(namespace, phoneNo, channel, status);
if (result == null) { if (result == null) {
return JsonResult.serverFailed(); return JsonResult.serverFailed();
......
...@@ -52,12 +52,10 @@ public class VccDataServiceImpl implements VccDataService { ...@@ -52,12 +52,10 @@ public class VccDataServiceImpl implements VccDataService {
String vccChannel = null; String vccChannel = null;
if (openedChannel.equals("214")) { if (openedChannel.equals("214")) {
vccChannel = "159904"; vccChannel = "159904";
} } else if (openedChannel.equals("217")) {
if (openedChannel.equals("217")) {
vccChannel = "159905"; vccChannel = "159905";
} } else {
if (vccChannel == null) { vccChannel = openedChannel;
return null;
} }
// 登录 // 登录
Map loginResult = Vcc.login(namespace, phoneNo, openedChannel, openedChannel); Map loginResult = Vcc.login(namespace, phoneNo, openedChannel, openedChannel);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment