|
@@ -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 + "'");
|