Pu Zhibing
2025-11-13 b9cc1011eb0ef761bfebea94cd684b1ee68f4e4a
DriverFBTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/util/JGPushUtil.java
@@ -20,6 +20,9 @@
@Component
public class JGPushUtil {
    @Value("${jiguang.open}")
    private Boolean open;
    @Value("${jiguang.appKey-driver}")
    private String appKeyDriver;
@@ -59,6 +62,9 @@
     * @param content
     */
    public void push(Integer type, String content, String...tags){
        if(!open){
            return;
        }
        String masterSecret = (type == 1 ? masterSecretDriver : masterSecretDispatch);
        String appKey = (type == 1 ? appKeyDriver : appKeyDispatch);
        JPushClient jpushClient = new JPushClient(masterSecret, appKey, null, ClientConfig.getInstance());
@@ -75,6 +81,9 @@
    public void push(Integer type, String content, String title, Map<String, String> map, String...tags){
        if(!open){
            return;
        }
        String masterSecret = (type == 1 ? masterSecretDriver : masterSecretDispatch);
        String appKey = (type == 1 ? appKeyDriver : appKeyDispatch);
        JPushClient jpushClient = new JPushClient(masterSecret, appKey, null, ClientConfig.getInstance());