获取openId 失败
This commit is contained in:
@@ -56,6 +56,9 @@ public class UserAuthorizationController {
|
||||
@GetMapping("/openId")
|
||||
public CzgResult<Map<String, String>> getOpenId(@RequestParam String code, @RequestParam String source, @RequestParam Long shopId) {
|
||||
String openId = userAuthorizationService.getOpenId(code, source);
|
||||
if (openId == null){
|
||||
return CzgResult.failure("获取openId失败");
|
||||
}
|
||||
ShopInfo shopInfo = shopInfoService.getById(shopId);
|
||||
if (shopInfo == null){
|
||||
return CzgResult.failure("店铺信息不存在");
|
||||
|
||||
Reference in New Issue
Block a user