From cbc9ffb792e29beddf15dbfa70437bfc40de5baa Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期一, 25 一月 2021 17:18:15 +0800
Subject: [PATCH] 完善微信H5支付功能

---
 src/main/java/com/yeshi/buwan/service/imp/UserService.java |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/yeshi/buwan/service/imp/UserService.java b/src/main/java/com/yeshi/buwan/service/imp/UserService.java
index ed37600..38aef5c 100644
--- a/src/main/java/com/yeshi/buwan/service/imp/UserService.java
+++ b/src/main/java/com/yeshi/buwan/service/imp/UserService.java
@@ -12,9 +12,9 @@
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Transactional;
 
-import com.yeshi.buwan.dao.LoginUserDao;
+import com.yeshi.buwan.dao.user.LoginUserDao;
 import com.yeshi.buwan.dao.UserDao;
-import com.yeshi.buwan.domain.LoginUser;
+import com.yeshi.buwan.domain.user.LoginUser;
 import com.yeshi.buwan.domain.SystemInfo;
 import com.yeshi.buwan.domain.UserData;
 import com.yeshi.buwan.domain.UserInfo;
@@ -153,6 +153,17 @@
         return data;
     }
 
+
+    /**
+     *
+     * @param openid
+     * @param detailSystem
+     * @param type 1-QQ 2-寰俊
+     * @param portrait
+     * @param name
+     * @param ipInfo
+     * @return
+     */
     @SuppressWarnings("unchecked")
     public LoginUser getLoginUser(final String openid, final String detailSystem, final int type, final String portrait,
                                   final String name, final String ipInfo) {
@@ -230,6 +241,7 @@
                 if (list != null && list.size() > 0)
                     return "璇ラ偖绠卞凡娉ㄥ唽";
                 try {
+                    user.setState(LoginUser.STATE_NORMAL);
                     session.getTransaction().begin();
                     session.save(user);
                     session.flush();

--
Gitblit v1.8.0