|
@@ -329,16 +329,14 @@ public class usercenter extends Controller {
|
|
|
if (isbinging) {
|
|
|
Rows openidsRows = dbConnect.runSqlQuery("select * from sys_wechatapp_openids where userid='" + userid + "' and systemclient='" + systemclient + "'");
|
|
|
if (openidsRows.isNotEmpty()) {
|
|
|
- if (!openidsRows.get(0).getString("openid").equals(openid)) {
|
|
|
- return getErrReturnObject().setErrMsg("当前账号已绑定微信,如需绑定其他微信,请先进行解绑操作!").toJSONString();
|
|
|
- }
|
|
|
+// if (!openidsRows.get(0).getString("openid").equals(openid)) {
|
|
|
+ return getErrReturnObject().setErrMsg("当前账号已绑定微信!").toJSONString();
|
|
|
+// }
|
|
|
}
|
|
|
|
|
|
Rows unionidsRows = dbConnect.runSqlQuery("select * from sys_wechatapp_unionids where userid='" + userid + "'");
|
|
|
if (unionidsRows.isNotEmpty()) {
|
|
|
- if (!unionidsRows.get(0).getString("unionid").equals(unionid)) {
|
|
|
- return getErrReturnObject().setErrMsg("当前账号已绑定微信,如需绑定其他微信,请先进行解绑操作!").toJSONString();
|
|
|
- }
|
|
|
+ return getErrReturnObject().setErrMsg("当前账号已绑定微信!").toJSONString();
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -395,7 +393,7 @@ public class usercenter extends Controller {
|
|
|
updateSQL.update();
|
|
|
if (usertype == 99) {
|
|
|
|
|
|
- new StoreHelper().updateUserType22(this,userid);
|
|
|
+ new StoreHelper().updateUserType22(this, userid);
|
|
|
}
|
|
|
|
|
|
}
|
|
@@ -407,7 +405,7 @@ public class usercenter extends Controller {
|
|
|
updateSQL.setValue("userid", 0);
|
|
|
updateSQL.update();
|
|
|
if (usertype == 22) {
|
|
|
- new StoreHelper().updateUserType99(this,userid);
|
|
|
+ new StoreHelper().updateUserType99(this, userid);
|
|
|
}
|
|
|
}
|
|
|
dbConnect.runSqlUpdate(sqllist);
|
|
@@ -431,7 +429,7 @@ public class usercenter extends Controller {
|
|
|
}
|
|
|
|
|
|
rows = dbConnect.runSqlQuery("select * from sys_hr WHERE userid=" + userid + " and siteid='" + siteid + "'");
|
|
|
- if(rows.isNotEmpty()){
|
|
|
+ if (rows.isNotEmpty()) {
|
|
|
return getErrReturnObject().setErrMsg("微信已绑定").toString();
|
|
|
}
|
|
|
|
|
@@ -443,7 +441,7 @@ public class usercenter extends Controller {
|
|
|
updateSQL.update();
|
|
|
|
|
|
if (usertype == 99) {
|
|
|
- new StoreHelper().updateUserType1(this,userid);
|
|
|
+ new StoreHelper().updateUserType1(this, userid);
|
|
|
}
|
|
|
|
|
|
|