|
|
@@ -23,6 +23,7 @@ import org.apache.commons.codec.binary.Base64;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.util.HashMap;
|
|
|
@@ -131,6 +132,7 @@ public class WxLoginService
|
|
|
* @param tel
|
|
|
* @return
|
|
|
*/
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
public Boolean register_small(String openId,String unionId,String tel,String inviteCode) {
|
|
|
User bo = new User();
|
|
|
bo.setOpenId(openId);
|