浏览代码

微信绑定

eganwu 1 年之前
父节点
当前提交
562b8f1b0f
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/custom/restcontroller/common/usercenter/usercenter.java

+ 3 - 0
src/custom/restcontroller/common/usercenter/usercenter.java

@@ -312,6 +312,9 @@ public class usercenter extends Controller {
     public String WechatBinding() throws YosException {
         String wechat_code = content.getString("wechat_code");
         boolean isbinging = content.getBooleanValue("isbinging");
+        if(content.containsKey("userid")&&content.getLongValue("userid")>0){
+            userid=content.getLongValue("userid");
+        }
         if (isbinging) {
             Rows openidsRows = dbConnect.runSqlQuery("select * from sys_wechatapp_openids where userid='" + userid + "' and systemclient='" + systemclient + "'");
             Rows unionidsRows = dbConnect.runSqlQuery("select * from sys_wechatapp_unionids where userid='" + userid + "'");