|
|
|
@ -19,6 +19,7 @@ import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
|
import java.io.IOException; |
|
|
|
|
import java.util.Date; |
|
|
|
|
import java.util.Optional; |
|
|
|
|
|
|
|
|
|
@Api(value = "小程序-实名认证", tags = "小程序-实名认证") |
|
|
|
@ -87,6 +88,11 @@ public class AliRealNameAuthenticationController { |
|
|
|
|
throw new RuntimeException(info.getRespMessage()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//设置用户当前认证时间
|
|
|
|
|
userAuthenticationInformation.setRealNameAuthenticationTime(new Date()); |
|
|
|
|
userAuthenticationInformation.setProvince(info.getProvince()); |
|
|
|
|
userAuthenticationInformation.setCity(info.getCity()); |
|
|
|
|
userAuthenticationInformation.setCounty(info.getCounty()); |
|
|
|
|
|
|
|
|
|
boolean addState = service.save(userAuthenticationInformation); |
|
|
|
|
return addState ? R.ok() : R.error("认证失败"); |
|
|
|
|