微信小程序 提审时隐藏功能;微信小程序添加微信快捷登录、随便看看(登的user用户)
This commit is contained in:
@@ -3,6 +3,9 @@ package com.cxyxiaomo.epp.gateway.controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.LinkedList;
|
||||
|
||||
@RestController
|
||||
public class Controller {
|
||||
|
||||
@@ -10,4 +13,35 @@ public class Controller {
|
||||
public String error() {
|
||||
return "[ERROR] 500 Internal Server Error";
|
||||
}
|
||||
|
||||
/**
|
||||
* 为了通过微信的小程序审核所特别处理的
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/getConfig")
|
||||
public HashMap<String, Object> WxMiniProgramAuditSpecialHandle() {
|
||||
boolean showCode = true;
|
||||
boolean showShop = true;
|
||||
LinkedList<String> tabbarItem = new LinkedList<>();
|
||||
tabbarItem.push("pages/index/index");
|
||||
if (showCode) tabbarItem.push("pages/residents/code");
|
||||
tabbarItem.push("pages/residents/report");
|
||||
if (showShop) tabbarItem.push("pages/shop/shop");
|
||||
tabbarItem.push("pages/person/person");
|
||||
|
||||
LinkedList<String> indexItem = new LinkedList<>();
|
||||
indexItem.push("/pages/index/login");
|
||||
if (showCode) indexItem.push("/pages/residents/code");
|
||||
if (showCode) indexItem.push("scanQRCode");
|
||||
indexItem.push("/pages/residents/report");
|
||||
if (showShop) indexItem.push("/pages/shop/shop");
|
||||
indexItem.push("/pages/person/person");
|
||||
indexItem.push("/pages/person/updpwd");
|
||||
|
||||
HashMap<String, Object> map = new HashMap<>();
|
||||
map.put("tabbarItem", tabbarItem);
|
||||
map.put("indexItem", indexItem);
|
||||
return map;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user