优化代码
This commit is contained in:
parent
d5e64e7046
commit
b47e4b0f2b
@ -373,7 +373,9 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserDao, AppUserEntity> i
|
|||||||
}
|
}
|
||||||
|
|
||||||
private String getOpenId(String code){
|
private String getOpenId(String code){
|
||||||
SystemEntity system = systemService.lambdaQuery().eq(SystemEntity::getConfig, "miniapp").one();
|
SystemEntity system = systemService.lambdaQuery()
|
||||||
|
.eq(SystemEntity::getConfig, ConfigConstant.MINIAPP)
|
||||||
|
.one();
|
||||||
|
|
||||||
//小程序唯一标识 (在微信小程序管理后台获取)
|
//小程序唯一标识 (在微信小程序管理后台获取)
|
||||||
String appId = system.getValue();
|
String appId = system.getValue();
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
package io.linfeng.modules.app.controller;
|
package io.linfeng.modules.app.controller;
|
||||||
|
|
||||||
|
import io.linfeng.common.utils.ConfigConstant;
|
||||||
import io.linfeng.common.utils.R;
|
import io.linfeng.common.utils.R;
|
||||||
import io.linfeng.modules.admin.entity.SystemEntity;
|
import io.linfeng.modules.admin.entity.SystemEntity;
|
||||||
import io.linfeng.modules.admin.service.SystemService;
|
import io.linfeng.modules.admin.service.SystemService;
|
||||||
@ -37,7 +38,7 @@ public class AppSystemConfigController {
|
|||||||
@GetMapping("/miniConfig")
|
@GetMapping("/miniConfig")
|
||||||
public R miniConfig(){
|
public R miniConfig(){
|
||||||
SystemEntity system = systemService.lambdaQuery()
|
SystemEntity system = systemService.lambdaQuery()
|
||||||
.eq(SystemEntity::getConfig, "miniapp")
|
.eq(SystemEntity::getConfig, ConfigConstant.MINIAPP)
|
||||||
.one();
|
.one();
|
||||||
return R.ok().put("logo",system.getIntro());
|
return R.ok().put("logo",system.getIntro());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user