完成10个工程的代码
This commit is contained in:
parent
4d57c022c6
commit
2cf3ac80b5
@ -23,21 +23,21 @@ Sockt.io官网:<https://socket.io/>
|
||||
### WebSocket js客户端测试
|
||||
|
||||
```
|
||||
com.enzhico.pos.socket.server.ChatLauncher - /client/html/index.html
|
||||
com.enzhico.pos.socket.server.EventChatLauncher - /client/html/event-index.html
|
||||
com.enzhico.pos.socket.server.SslChatLauncher - /client/html/ssl-event-index.html
|
||||
com.enzhico.pos.socket.server.NamespaceChatLauncher - /client/html/namespace-index.html
|
||||
com.enzhico.pos.socket.server.AckChatLauncher - /client/html/ack-index.html
|
||||
com.enzhico.pos.socket.server.BinaryEventLauncher - /client/html/binary-event-index.html
|
||||
com.xncoding.pos.socket.server.ChatLauncher - /client/html/index.html
|
||||
com.xncoding.pos.socket.server.EventChatLauncher - /client/html/event-index.html
|
||||
com.xncoding.pos.socket.server.SslChatLauncher - /client/html/ssl-event-index.html
|
||||
com.xncoding.pos.socket.server.NamespaceChatLauncher - /client/html/namespace-index.html
|
||||
com.xncoding.pos.socket.server.AckChatLauncher - /client/html/ack-index.html
|
||||
com.xncoding.pos.socket.server.BinaryEventLauncher - /client/html/binary-event-index.html
|
||||
```
|
||||
|
||||
### WebSocket Java客户端测试
|
||||
|
||||
```
|
||||
服务器:
|
||||
com.enzhico.pos.socket.server.SocketServer
|
||||
com.xncoding.pos.socket.server.SocketServer
|
||||
客户端:
|
||||
com.enzhico.pos.socket.client.SocketClient
|
||||
com.xncoding.pos.socket.client.SocketClient
|
||||
```
|
||||
|
||||
### 广播消息中的namespace和room
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt;
|
||||
package com.xncoding.jwt;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
@ -1,6 +1,6 @@
|
||||
package com.enzhico.jwt.api;
|
||||
package com.xncoding.jwt.api;
|
||||
|
||||
import com.enzhico.jwt.api.model.BaseResponse;
|
||||
import com.xncoding.jwt.api.model.BaseResponse;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.apache.shiro.ShiroException;
|
||||
import org.apache.shiro.authc.AuthenticationException;
|
@ -1,11 +1,11 @@
|
||||
package com.enzhico.jwt.api;
|
||||
package com.xncoding.jwt.api;
|
||||
|
||||
import com.enzhico.jwt.api.model.BaseResponse;
|
||||
import com.enzhico.jwt.api.model.LoginParam;
|
||||
import com.enzhico.jwt.common.util.JWTUtil;
|
||||
import com.enzhico.jwt.dao.entity.ManagerInfo;
|
||||
import com.enzhico.jwt.service.ManagerInfoService;
|
||||
import com.enzhico.jwt.shiro.ShiroKit;
|
||||
import com.xncoding.jwt.api.model.BaseResponse;
|
||||
import com.xncoding.jwt.api.model.LoginParam;
|
||||
import com.xncoding.jwt.common.util.JWTUtil;
|
||||
import com.xncoding.jwt.dao.entity.ManagerInfo;
|
||||
import com.xncoding.jwt.service.ManagerInfoService;
|
||||
import com.xncoding.jwt.shiro.ShiroKit;
|
||||
import io.swagger.annotations.*;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.shiro.authz.UnauthorizedException;
|
@ -1,8 +1,8 @@
|
||||
package com.enzhico.jwt.api;
|
||||
package com.xncoding.jwt.api;
|
||||
|
||||
import com.enzhico.jwt.api.model.BaseResponse;
|
||||
import com.enzhico.jwt.api.model.UnbindParam;
|
||||
import com.enzhico.jwt.service.ApiService;
|
||||
import com.xncoding.jwt.api.model.BaseResponse;
|
||||
import com.xncoding.jwt.api.model.UnbindParam;
|
||||
import com.xncoding.jwt.service.ApiService;
|
||||
import io.swagger.annotations.*;
|
||||
import org.apache.shiro.authz.annotation.RequiresUser;
|
||||
import org.slf4j.Logger;
|
@ -1,10 +1,10 @@
|
||||
package com.enzhico.jwt.api;
|
||||
package com.xncoding.jwt.api;
|
||||
|
||||
import com.enzhico.jwt.api.model.*;
|
||||
import com.enzhico.jwt.common.dao.entity.Pos;
|
||||
import com.enzhico.jwt.common.dao.entity.Project;
|
||||
import com.enzhico.jwt.service.ApiService;
|
||||
import com.enzhico.jwt.service.ManagerInfoService;
|
||||
import com.xncoding.jwt.api.model.*;
|
||||
import com.xncoding.jwt.common.dao.entity.Pos;
|
||||
import com.xncoding.jwt.common.dao.entity.Project;
|
||||
import com.xncoding.jwt.service.ApiService;
|
||||
import com.xncoding.jwt.service.ManagerInfoService;
|
||||
import io.swagger.annotations.*;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresUser;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.api.model;
|
||||
package com.xncoding.jwt.api.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.api.model;
|
||||
package com.xncoding.jwt.api.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.api.model;
|
||||
package com.xncoding.jwt.api.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.api.model;
|
||||
package com.xncoding.jwt.api.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
@ -25,7 +25,7 @@ public class LoginParam {
|
||||
/**
|
||||
* Application ID
|
||||
*/
|
||||
@ApiModelProperty(value = "Application ID", name = "appid", example = "com.enzhico.xzpay", required = false)
|
||||
@ApiModelProperty(value = "Application ID", name = "appid", example = "com.xncoding.xzpay", required = false)
|
||||
private String appid;
|
||||
/**
|
||||
* IMEI码
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.api.model;
|
||||
package com.xncoding.jwt.api.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
@ -56,7 +56,7 @@ public class PosParam {
|
||||
* 应用ID
|
||||
*/
|
||||
@ApiModelProperty(value = "APP应用ID(长度1-64位),每个APP都有唯一的Application Id,并且这个应用ID必须已经存在于系统之中",
|
||||
name = "applicationId", dataType = "String", example = "com.enzhico.xzpay", required = true)
|
||||
name = "applicationId", dataType = "String", example = "com.xncoding.xzpay", required = true)
|
||||
private String applicationId;
|
||||
|
||||
public String getImei() {
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.api.model;
|
||||
package com.xncoding.jwt.api.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.api.model;
|
||||
package com.xncoding.jwt.api.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.api.model;
|
||||
package com.xncoding.jwt.api.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
@ -20,7 +20,7 @@ public class VersionParam {
|
||||
/**
|
||||
* 应用ID
|
||||
*/
|
||||
@ApiModelProperty(value = "APP应用ID,每个APP都有唯一的Application Id", name = "applicationId", example = "com.enzhico.xzpay", required = true)
|
||||
@ApiModelProperty(value = "APP应用ID,每个APP都有唯一的Application Id", name = "applicationId", example = "com.xncoding.xzpay", required = true)
|
||||
private String applicationId;
|
||||
/**
|
||||
* 当前版本号
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.api.model;
|
||||
package com.xncoding.jwt.api.model;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
@ -43,7 +43,7 @@ public class VersionResult {
|
||||
/**
|
||||
* 新版本下载地址
|
||||
*/
|
||||
@ApiModelProperty(value = "新版本下载地址", name = "downloadUrl", example = "http://enzhico.net/files/行政收费_1.3.0.apk")
|
||||
@ApiModelProperty(value = "新版本下载地址", name = "downloadUrl", example = "http://xncoding.net/files/行政收费_1.3.0.apk")
|
||||
private String downloadUrl;
|
||||
|
||||
public boolean isFindNew() {
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.common;
|
||||
package com.xncoding.jwt.common;
|
||||
|
||||
import com.corundumstudio.socketio.SocketIOServer;
|
||||
import org.slf4j.Logger;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.common.constant;
|
||||
package com.xncoding.jwt.common.constant;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.common.constant;
|
||||
package com.xncoding.jwt.common.constant;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.common.dao.entity;
|
||||
package com.xncoding.jwt.common.dao.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.common.dao.entity;
|
||||
package com.xncoding.jwt.common.dao.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.common.dao.entity;
|
||||
package com.xncoding.jwt.common.dao.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.common.dao.entity;
|
||||
package com.xncoding.jwt.common.dao.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.common.dao.entity;
|
||||
package com.xncoding.jwt.common.dao.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.common.dao.entity;
|
||||
package com.xncoding.jwt.common.dao.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.common.dao.entity;
|
||||
package com.xncoding.jwt.common.dao.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.common.dao.entity;
|
||||
package com.xncoding.jwt.common.dao.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.common.dao.entity;
|
||||
package com.xncoding.jwt.common.dao.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.common.dao.entity;
|
||||
package com.xncoding.jwt.common.dao.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.common.dao.entity;
|
||||
package com.xncoding.jwt.common.dao.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.common.dao.entity;
|
||||
package com.xncoding.jwt.common.dao.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.common.dao.entity;
|
||||
package com.xncoding.jwt.common.dao.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
@ -1,6 +1,6 @@
|
||||
package com.enzhico.jwt.common.dao.repository;
|
||||
package com.xncoding.jwt.common.dao.repository;
|
||||
|
||||
import com.enzhico.jwt.common.dao.entity.App;
|
||||
import com.xncoding.jwt.common.dao.entity.App;
|
||||
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
||||
|
||||
/**
|
@ -1,6 +1,6 @@
|
||||
package com.enzhico.pos.common.dao.repository;
|
||||
package com.xncoding.jwt.common.dao.repository;
|
||||
|
||||
import com.enzhico.pos.common.dao.entity.AppPublish;
|
||||
import com.xncoding.jwt.common.dao.entity.AppPublish;
|
||||
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
||||
|
||||
/**
|
@ -1,6 +1,6 @@
|
||||
package com.enzhico.pos.common.dao.repository;
|
||||
package com.xncoding.jwt.common.dao.repository;
|
||||
|
||||
import com.enzhico.pos.common.dao.entity.Manager;
|
||||
import com.xncoding.jwt.common.dao.entity.Manager;
|
||||
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
||||
|
||||
/**
|
@ -1,6 +1,6 @@
|
||||
package com.enzhico.jwt.common.dao.repository;
|
||||
package com.xncoding.jwt.common.dao.repository;
|
||||
|
||||
import com.enzhico.jwt.common.dao.entity.ManagerRole;
|
||||
import com.xncoding.jwt.common.dao.entity.ManagerRole;
|
||||
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
||||
|
||||
/**
|
@ -1,6 +1,6 @@
|
||||
package com.enzhico.jwt.common.dao.repository;
|
||||
package com.xncoding.jwt.common.dao.repository;
|
||||
|
||||
import com.enzhico.jwt.common.dao.entity.OperationLog;
|
||||
import com.xncoding.jwt.common.dao.entity.OperationLog;
|
||||
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
||||
|
||||
/**
|
@ -1,6 +1,6 @@
|
||||
package com.enzhico.jwt.common.dao.repository;
|
||||
package com.xncoding.jwt.common.dao.repository;
|
||||
|
||||
import com.enzhico.jwt.common.dao.entity.Permission;
|
||||
import com.xncoding.jwt.common.dao.entity.Permission;
|
||||
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
||||
|
||||
/**
|
@ -1,6 +1,6 @@
|
||||
package com.enzhico.pos.common.dao.repository;
|
||||
package com.xncoding.jwt.common.dao.repository;
|
||||
|
||||
import com.enzhico.pos.common.dao.entity.PosHistory;
|
||||
import com.xncoding.jwt.common.dao.entity.PosHistory;
|
||||
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
||||
|
||||
/**
|
@ -1,6 +1,6 @@
|
||||
package com.enzhico.pos.common.dao.repository;
|
||||
package com.xncoding.jwt.common.dao.repository;
|
||||
|
||||
import com.enzhico.pos.common.dao.entity.Pos;
|
||||
import com.xncoding.jwt.common.dao.entity.Pos;
|
||||
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
||||
|
||||
/**
|
@ -1,6 +1,6 @@
|
||||
package com.enzhico.pos.common.dao.repository;
|
||||
package com.xncoding.jwt.common.dao.repository;
|
||||
|
||||
import com.enzhico.pos.common.dao.entity.PosMonitor;
|
||||
import com.xncoding.jwt.common.dao.entity.PosMonitor;
|
||||
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
||||
|
||||
/**
|
@ -1,6 +1,6 @@
|
||||
package com.enzhico.pos.common.dao.repository;
|
||||
package com.xncoding.jwt.common.dao.repository;
|
||||
|
||||
import com.enzhico.pos.common.dao.entity.Project;
|
||||
import com.xncoding.jwt.common.dao.entity.Project;
|
||||
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
||||
|
||||
/**
|
@ -1,6 +1,6 @@
|
||||
package com.enzhico.jwt.common.dao.repository;
|
||||
package com.xncoding.jwt.common.dao.repository;
|
||||
|
||||
import com.enzhico.jwt.common.dao.entity.ProjectUser;
|
||||
import com.xncoding.jwt.common.dao.entity.ProjectUser;
|
||||
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
||||
|
||||
/**
|
@ -1,6 +1,6 @@
|
||||
package com.enzhico.jwt.common.dao.repository;
|
||||
package com.xncoding.jwt.common.dao.repository;
|
||||
|
||||
import com.enzhico.jwt.common.dao.entity.Role;
|
||||
import com.xncoding.jwt.common.dao.entity.Role;
|
||||
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
||||
|
||||
/**
|
@ -1,6 +1,6 @@
|
||||
package com.enzhico.jwt.common.dao.repository;
|
||||
package com.xncoding.jwt.common.dao.repository;
|
||||
|
||||
import com.enzhico.jwt.common.dao.entity.RolePermission;
|
||||
import com.xncoding.jwt.common.dao.entity.RolePermission;
|
||||
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
||||
|
||||
/**
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.common.util;
|
||||
package com.xncoding.jwt.common.util;
|
||||
|
||||
/**
|
||||
* 常用工具类,字符串、数字相关
|
@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.enzhico.jwt.common.util;
|
||||
package com.xncoding.jwt.common.util;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.text.DateFormat;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.common.util;
|
||||
package com.xncoding.jwt.common.util;
|
||||
|
||||
import com.auth0.jwt.JWT;
|
||||
import com.auth0.jwt.JWTVerifier;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.common.util;
|
||||
package com.xncoding.jwt.common.util;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
@ -1,8 +1,8 @@
|
||||
package com.enzhico.jwt.config;
|
||||
package com.xncoding.jwt.config;
|
||||
|
||||
import com.alibaba.druid.pool.DruidDataSource;
|
||||
import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
|
||||
import com.enzhico.jwt.config.properties.DruidProperties;
|
||||
import com.xncoding.jwt.config.properties.DruidProperties;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
@ -20,8 +20,8 @@ import javax.annotation.Resource;
|
||||
@Configuration
|
||||
@EnableTransactionManagement(order = 2)
|
||||
@MapperScan(basePackages = {
|
||||
"com.enzhico.jwt.common.dao.repository",
|
||||
"com.enzhico.jwt.dao.repository"})
|
||||
"com.xncoding.jwt.common.dao.repository",
|
||||
"com.xncoding.jwt.dao.repository"})
|
||||
public class MybatisPlusConfig {
|
||||
|
||||
@Resource
|
@ -1,15 +1,15 @@
|
||||
package com.enzhico.jwt.config;
|
||||
package com.xncoding.jwt.config;
|
||||
|
||||
import com.corundumstudio.socketio.AuthorizationListener;
|
||||
import com.corundumstudio.socketio.HandshakeData;
|
||||
import com.corundumstudio.socketio.SocketIOServer;
|
||||
import com.corundumstudio.socketio.annotation.SpringAnnotationScanner;
|
||||
import com.enzhico.jwt.common.util.JWTUtil;
|
||||
import com.enzhico.jwt.config.properties.MyProperties;
|
||||
import com.enzhico.jwt.dao.entity.ManagerInfo;
|
||||
import com.enzhico.jwt.service.ApiService;
|
||||
import com.enzhico.jwt.service.ManagerInfoService;
|
||||
import com.enzhico.jwt.shiro.ShiroKit;
|
||||
import com.xncoding.jwt.common.util.JWTUtil;
|
||||
import com.xncoding.jwt.config.properties.MyProperties;
|
||||
import com.xncoding.jwt.dao.entity.ManagerInfo;
|
||||
import com.xncoding.jwt.service.ApiService;
|
||||
import com.xncoding.jwt.service.ManagerInfoService;
|
||||
import com.xncoding.jwt.shiro.ShiroKit;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.context.annotation.Bean;
|
@ -1,7 +1,7 @@
|
||||
package com.enzhico.jwt.config;
|
||||
package com.xncoding.jwt.config;
|
||||
|
||||
import com.enzhico.jwt.shiro.JWTFilter;
|
||||
import com.enzhico.jwt.shiro.MyShiroRealm;
|
||||
import com.xncoding.jwt.shiro.JWTFilter;
|
||||
import com.xncoding.jwt.shiro.MyShiroRealm;
|
||||
import org.apache.shiro.cache.ehcache.EhCacheManager;
|
||||
import org.apache.shiro.mgt.DefaultSessionStorageEvaluator;
|
||||
import org.apache.shiro.mgt.DefaultSubjectDAO;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.config;
|
||||
package com.xncoding.jwt.config;
|
||||
|
||||
import com.google.common.collect.Sets;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
@ -33,7 +33,7 @@ public class Swagger2Config {
|
||||
.forCodeGeneration(true)
|
||||
.select()
|
||||
// 指定controller存放的目录路径
|
||||
.apis(RequestHandlerSelectors.basePackage("com.enzhico.jwt.api"))
|
||||
.apis(RequestHandlerSelectors.basePackage("com.xncoding.jwt.api"))
|
||||
// .paths(PathSelectors.ant("/api/v1/*"))
|
||||
.paths(PathSelectors.any())
|
||||
.build();
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.config;
|
||||
package com.xncoding.jwt.config;
|
||||
|
||||
import com.alibaba.druid.pool.DruidDataSource;
|
||||
import com.alibaba.druid.support.http.StatViewServlet;
|
||||
@ -64,7 +64,7 @@ public class WebConfig {
|
||||
@Bean
|
||||
public JdkRegexpMethodPointcut druidStatPointcut() {
|
||||
JdkRegexpMethodPointcut druidStatPointcut = new JdkRegexpMethodPointcut();
|
||||
String patterns = "com.enzhico.jwt.*.service.*";
|
||||
String patterns = "com.xncoding.jwt.*.service.*";
|
||||
//可以set多个
|
||||
druidStatPointcut.setPatterns(patterns);
|
||||
return druidStatPointcut;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.config.properties;
|
||||
package com.xncoding.jwt.config.properties;
|
||||
|
||||
import com.alibaba.druid.pool.DruidDataSource;
|
||||
import com.alibaba.druid.util.JdbcConstants;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.config.properties;
|
||||
package com.xncoding.jwt.config.properties;
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.stereotype.Component;
|
||||
@ -11,7 +11,7 @@ import org.springframework.stereotype.Component;
|
||||
* @since 2018/01/06 21:09
|
||||
*/
|
||||
@Component
|
||||
@ConfigurationProperties(prefix = "enzhico")
|
||||
@ConfigurationProperties(prefix = "xncoding")
|
||||
public class MyProperties {
|
||||
/**
|
||||
* socket端口
|
@ -1,7 +1,7 @@
|
||||
package com.enzhico.jwt.dao.entity;
|
||||
package com.xncoding.jwt.dao.entity;
|
||||
|
||||
import com.enzhico.jwt.common.constant.DictMap;
|
||||
import com.enzhico.jwt.common.dao.entity.App;
|
||||
import com.xncoding.jwt.common.constant.DictMap;
|
||||
import com.xncoding.jwt.common.dao.entity.App;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.pos.dao.entity;
|
||||
package com.xncoding.jwt.dao.entity;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.dao.entity;
|
||||
package com.xncoding.jwt.dao.entity;
|
||||
|
||||
/**
|
||||
* FileInfo
|
@ -1,7 +1,7 @@
|
||||
package com.enzhico.jwt.dao.entity;
|
||||
package com.xncoding.jwt.dao.entity;
|
||||
|
||||
import com.enzhico.jwt.common.constant.DictMap;
|
||||
import com.enzhico.jwt.common.dao.entity.Manager;
|
||||
import com.xncoding.jwt.common.constant.DictMap;
|
||||
import com.xncoding.jwt.common.dao.entity.Manager;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
@ -1,8 +1,8 @@
|
||||
package com.enzhico.pos.dao.entity;
|
||||
package com.xncoding.jwt.dao.entity;
|
||||
|
||||
import com.enzhico.pos.common.constant.DictMap;
|
||||
import com.enzhico.pos.common.dao.entity.Pos;
|
||||
import com.enzhico.pos.common.dao.entity.PosMonitor;
|
||||
import com.xncoding.jwt.common.constant.DictMap;
|
||||
import com.xncoding.jwt.common.dao.entity.Pos;
|
||||
import com.xncoding.jwt.common.dao.entity.PosMonitor;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.enzhico.jwt.dao.entity;
|
||||
package com.xncoding.jwt.dao.entity;
|
||||
|
||||
import com.enzhico.jwt.common.constant.DictMap;
|
||||
import com.enzhico.jwt.common.dao.entity.Pos;
|
||||
import com.xncoding.jwt.common.constant.DictMap;
|
||||
import com.xncoding.jwt.common.dao.entity.Pos;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
@ -1,8 +1,8 @@
|
||||
package com.enzhico.pos.dao.entity;
|
||||
package com.xncoding.jwt.dao.entity;
|
||||
|
||||
import com.enzhico.pos.common.constant.DictMap;
|
||||
import com.enzhico.pos.common.dao.entity.Manager;
|
||||
import com.enzhico.pos.common.dao.entity.Pos;
|
||||
import com.xncoding.jwt.common.constant.DictMap;
|
||||
import com.xncoding.jwt.common.dao.entity.Manager;
|
||||
import com.xncoding.jwt.common.dao.entity.Pos;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.pos.dao.entity;
|
||||
package com.xncoding.jwt.dao.entity;
|
||||
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.pos.dao.entity;
|
||||
package com.xncoding.jwt.dao.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.pos.dao.entity;
|
||||
package com.xncoding.jwt.dao.entity;
|
||||
|
||||
import java.util.List;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.dao.entity;
|
||||
package com.xncoding.jwt.dao.entity;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.dao.entity;
|
||||
package com.xncoding.jwt.dao.entity;
|
||||
|
||||
import java.util.Date;
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.enzhico.pos.dao.entity;
|
||||
package com.xncoding.jwt.dao.entity;
|
||||
|
||||
import com.enzhico.pos.common.dao.entity.Permission;
|
||||
import com.enzhico.pos.common.dao.entity.Role;
|
||||
import com.xncoding.jwt.common.dao.entity.Permission;
|
||||
import com.xncoding.jwt.common.dao.entity.Role;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
@ -1,7 +1,7 @@
|
||||
package com.enzhico.jwt.dao.repository;
|
||||
package com.xncoding.jwt.dao.repository;
|
||||
|
||||
import com.enzhico.jwt.api.model.VersionParam;
|
||||
import com.enzhico.jwt.api.model.VersionResult;
|
||||
import com.xncoding.jwt.api.model.VersionParam;
|
||||
import com.xncoding.jwt.api.model.VersionResult;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
@ -1,9 +1,9 @@
|
||||
package com.enzhico.pos.dao.repository;
|
||||
package com.xncoding.jwt.dao.repository;
|
||||
|
||||
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
|
||||
import com.enzhico.pos.common.dao.repository.ManagerMapper;
|
||||
import com.enzhico.pos.dao.entity.ManagerInfo;
|
||||
import com.enzhico.pos.dao.entity.SearchUser;
|
||||
import com.xncoding.jwt.common.dao.repository.ManagerMapper;
|
||||
import com.xncoding.jwt.dao.entity.ManagerInfo;
|
||||
import com.xncoding.jwt.dao.entity.SearchUser;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.enzhico.jwt.dao.repository.ApiDao">
|
||||
<mapper namespace="com.xncoding.jwt.dao.repository.ApiDao">
|
||||
|
||||
<!-- 查询是否存在发布的新版本-->
|
||||
<select id="selectPublishCount" parameterType="versionParam" resultType="versionResult">
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.enzhico.jwt.dao.repository.ManagerInfoDao">
|
||||
<mapper namespace="com.xncoding.jwt.dao.repository.ManagerInfoDao">
|
||||
|
||||
<resultMap id="ManagerInfoMap" type="managerInfo">
|
||||
<id property="id" column="id"/>
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.exception;
|
||||
package com.xncoding.jwt.exception;
|
||||
|
||||
import org.apache.shiro.authc.AuthenticationException;
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.exception;
|
||||
package com.xncoding.jwt.exception;
|
||||
|
||||
/**
|
||||
* UnauthorizedException
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.handler;
|
||||
package com.xncoding.jwt.handler;
|
||||
|
||||
import com.corundumstudio.socketio.AckRequest;
|
||||
import com.corundumstudio.socketio.SocketIOClient;
|
||||
@ -6,11 +6,11 @@ import com.corundumstudio.socketio.SocketIOServer;
|
||||
import com.corundumstudio.socketio.annotation.OnConnect;
|
||||
import com.corundumstudio.socketio.annotation.OnDisconnect;
|
||||
import com.corundumstudio.socketio.annotation.OnEvent;
|
||||
import com.enzhico.jwt.api.model.*;
|
||||
import com.enzhico.jwt.common.dao.entity.Pos;
|
||||
import com.enzhico.jwt.common.dao.entity.Project;
|
||||
import com.enzhico.jwt.common.util.JWTUtil;
|
||||
import com.enzhico.jwt.service.ApiService;
|
||||
import com.xncoding.jwt.api.model.*;
|
||||
import com.xncoding.jwt.common.dao.entity.Pos;
|
||||
import com.xncoding.jwt.common.dao.entity.Project;
|
||||
import com.xncoding.jwt.common.util.JWTUtil;
|
||||
import com.xncoding.jwt.service.ApiService;
|
||||
import io.socket.client.Socket;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.slf4j.Logger;
|
@ -1,22 +1,22 @@
|
||||
package com.enzhico.jwt.service;
|
||||
package com.xncoding.jwt.service;
|
||||
|
||||
import com.baomidou.mybatisplus.mapper.Condition;
|
||||
import com.corundumstudio.socketio.SocketIOClient;
|
||||
import com.corundumstudio.socketio.SocketIOServer;
|
||||
import com.enzhico.jwt.api.model.ReportParam;
|
||||
import com.enzhico.jwt.api.model.VersionParam;
|
||||
import com.enzhico.jwt.api.model.VersionResult;
|
||||
import com.enzhico.jwt.common.dao.entity.Pos;
|
||||
import com.enzhico.jwt.common.dao.entity.PosHistory;
|
||||
import com.enzhico.jwt.common.dao.entity.PosMonitor;
|
||||
import com.enzhico.jwt.common.dao.entity.Project;
|
||||
import com.enzhico.jwt.common.dao.repository.PosHistoryMapper;
|
||||
import com.enzhico.jwt.common.dao.repository.PosMapper;
|
||||
import com.enzhico.jwt.common.dao.repository.PosMonitorMapper;
|
||||
import com.enzhico.jwt.common.dao.repository.ProjectMapper;
|
||||
import com.enzhico.jwt.common.util.CommonUtil;
|
||||
import com.enzhico.jwt.config.properties.MyProperties;
|
||||
import com.enzhico.jwt.dao.repository.ApiDao;
|
||||
import com.xncoding.jwt.api.model.ReportParam;
|
||||
import com.xncoding.jwt.api.model.VersionParam;
|
||||
import com.xncoding.jwt.api.model.VersionResult;
|
||||
import com.xncoding.jwt.common.dao.entity.Pos;
|
||||
import com.xncoding.jwt.common.dao.entity.PosHistory;
|
||||
import com.xncoding.jwt.common.dao.entity.PosMonitor;
|
||||
import com.xncoding.jwt.common.dao.entity.Project;
|
||||
import com.xncoding.jwt.common.dao.repository.PosHistoryMapper;
|
||||
import com.xncoding.jwt.common.dao.repository.PosMapper;
|
||||
import com.xncoding.jwt.common.dao.repository.PosMonitorMapper;
|
||||
import com.xncoding.jwt.common.dao.repository.ProjectMapper;
|
||||
import com.xncoding.jwt.common.util.CommonUtil;
|
||||
import com.xncoding.jwt.config.properties.MyProperties;
|
||||
import com.xncoding.jwt.dao.repository.ApiDao;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.slf4j.Logger;
|
@ -1,17 +1,17 @@
|
||||
package com.enzhico.jwt.service;
|
||||
package com.xncoding.jwt.service;
|
||||
|
||||
import com.baomidou.mybatisplus.mapper.Condition;
|
||||
import com.baomidou.mybatisplus.plugins.Page;
|
||||
import com.enzhico.jwt.common.dao.entity.Manager;
|
||||
import com.enzhico.jwt.common.dao.entity.Project;
|
||||
import com.enzhico.jwt.common.dao.entity.ProjectUser;
|
||||
import com.enzhico.jwt.common.dao.repository.ProjectMapper;
|
||||
import com.enzhico.jwt.common.dao.repository.ProjectUserMapper;
|
||||
import com.enzhico.jwt.dao.entity.ManagerInfo;
|
||||
import com.enzhico.jwt.dao.entity.SearchUser;
|
||||
import com.enzhico.jwt.dao.repository.ManagerInfoDao;
|
||||
import com.enzhico.jwt.exception.ForbiddenUserException;
|
||||
import com.enzhico.jwt.shiro.ShiroKit;
|
||||
import com.xncoding.jwt.common.dao.entity.Manager;
|
||||
import com.xncoding.jwt.common.dao.entity.Project;
|
||||
import com.xncoding.jwt.common.dao.entity.ProjectUser;
|
||||
import com.xncoding.jwt.common.dao.repository.ProjectMapper;
|
||||
import com.xncoding.jwt.common.dao.repository.ProjectUserMapper;
|
||||
import com.xncoding.jwt.dao.entity.ManagerInfo;
|
||||
import com.xncoding.jwt.dao.entity.SearchUser;
|
||||
import com.xncoding.jwt.dao.repository.ManagerInfoDao;
|
||||
import com.xncoding.jwt.exception.ForbiddenUserException;
|
||||
import com.xncoding.jwt.shiro.ShiroKit;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.shiro.authc.UnknownAccountException;
|
||||
import org.apache.shiro.crypto.hash.SimpleHash;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.shiro;
|
||||
package com.xncoding.jwt.shiro;
|
||||
|
||||
import org.apache.shiro.web.filter.authc.BasicHttpAuthenticationFilter;
|
||||
import org.slf4j.Logger;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.shiro;
|
||||
package com.xncoding.jwt.shiro;
|
||||
|
||||
import org.apache.shiro.authc.AuthenticationToken;
|
||||
|
@ -1,10 +1,10 @@
|
||||
package com.enzhico.jwt.shiro;
|
||||
package com.xncoding.jwt.shiro;
|
||||
|
||||
import com.enzhico.jwt.common.dao.entity.Permission;
|
||||
import com.enzhico.jwt.common.util.JWTUtil;
|
||||
import com.enzhico.jwt.dao.entity.ManagerInfo;
|
||||
import com.enzhico.jwt.dao.entity.SysRole;
|
||||
import com.enzhico.jwt.service.ManagerInfoService;
|
||||
import com.xncoding.jwt.common.dao.entity.Permission;
|
||||
import com.xncoding.jwt.common.util.JWTUtil;
|
||||
import com.xncoding.jwt.dao.entity.ManagerInfo;
|
||||
import com.xncoding.jwt.dao.entity.SysRole;
|
||||
import com.xncoding.jwt.service.ManagerInfoService;
|
||||
import org.apache.shiro.authc.AuthenticationException;
|
||||
import org.apache.shiro.authc.AuthenticationInfo;
|
||||
import org.apache.shiro.authc.AuthenticationToken;
|
@ -13,9 +13,9 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
package com.enzhico.jwt.shiro;
|
||||
package com.xncoding.jwt.shiro;
|
||||
|
||||
import com.enzhico.jwt.dao.entity.ManagerInfo;
|
||||
import com.xncoding.jwt.dao.entity.ManagerInfo;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.apache.shiro.crypto.SecureRandomNumberGenerator;
|
||||
import org.apache.shiro.crypto.hash.SimpleHash;
|
@ -3,7 +3,7 @@
|
||||
##########################################################
|
||||
|
||||
################### 自定义项目配置 ###################
|
||||
enzhico:
|
||||
xncoding:
|
||||
socket-port: 9096 #socket端口
|
||||
ping-interval: 60000 #Ping消息间隔(毫秒)
|
||||
ping-timeout: 180000 #Ping消息超时时间(毫秒)
|
||||
@ -22,11 +22,11 @@ spring:
|
||||
|
||||
################### mybatis-plus配置 ###################
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath*:com/enzhico/jwt/dao/repository/mapping/*.xml
|
||||
mapper-locations: classpath*:com/xncoding/jwt/dao/repository/mapping/*.xml
|
||||
typeAliasesPackage: >
|
||||
com.enzhico.jwt.api.model,
|
||||
com.enzhico.jwt.dao.entity,
|
||||
com.enzhico.jwt.common.dao.entity
|
||||
com.xncoding.jwt.api.model,
|
||||
com.xncoding.jwt.dao.entity,
|
||||
com.xncoding.jwt.common.dao.entity
|
||||
global-config:
|
||||
id-type: 0 # 0:数据库ID自增 1:用户输入id 2:全局唯一id(IdWorker) 3:全局唯一ID(uuid)
|
||||
db-column-underline: false
|
||||
@ -55,19 +55,19 @@ spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://123.207.66.156:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8
|
||||
username: root
|
||||
password: _EnZhi123
|
||||
password: ******
|
||||
thymeleaf:
|
||||
cache: false
|
||||
|
||||
################### 自定义项目配置 ###################
|
||||
enzhico:
|
||||
apk-url-prefix: http://enzhico.net/files/ #APK文件访问URL前缀
|
||||
xncoding:
|
||||
apk-url-prefix: http://xncoding.net/files/ #APK文件访问URL前缀
|
||||
|
||||
logging:
|
||||
level:
|
||||
ROOT: INFO
|
||||
com:
|
||||
enzhico: DEBUG
|
||||
xncoding: DEBUG
|
||||
file: E:/logs/pos-api.log
|
||||
|
||||
---
|
||||
@ -81,17 +81,17 @@ spring:
|
||||
datasource:
|
||||
url: jdbc:mysql://123.207.66.156:3306/pos?useSSL=false&autoReconnect=true&tinyInt1isBit=false&useUnicode=true&characterEncoding=utf8
|
||||
username: root
|
||||
password: _EnZhi123
|
||||
password: ******
|
||||
thymeleaf:
|
||||
cache: false
|
||||
|
||||
################### 自定义项目配置 ###################
|
||||
enzhico:
|
||||
apk-url-prefix: https://show.enzhico.net/files/ #APK文件访问URL前缀
|
||||
xncoding:
|
||||
apk-url-prefix: https://show.xncoding.net/files/ #APK文件访问URL前缀
|
||||
|
||||
logging:
|
||||
level:
|
||||
ROOT: INFO
|
||||
com:
|
||||
enzhico: DEBUG
|
||||
xncoding: DEBUG
|
||||
file: /var/logs/app-manage-api.log
|
||||
|
@ -18,10 +18,10 @@
|
||||
"""
|
||||
|
||||
###################################下面的参数你来指定###########################
|
||||
src_base_dir = r'E:\enzhico\app-manage\src\main\java'
|
||||
domain_package = r'com.enzhico.jwt.common.dao.entity'
|
||||
mapper_package = r'com.enzhico.jwt.common.dao.repository'
|
||||
schema_name = r'E:\enzhico\app-manage\src\main\resources\sql\schema.sql'
|
||||
src_base_dir = r'E:\xncoding\app-manage\src\main\java'
|
||||
domain_package = r'com.xncoding.jwt.common.dao.entity'
|
||||
mapper_package = r'com.xncoding.jwt.common.dao.repository'
|
||||
schema_name = r'E:\xncoding\app-manage\src\main\resources\sql\schema.sql'
|
||||
author = r'熊能'
|
||||
TODAY_STR = '2018/01/02'
|
||||
###############################################################################
|
||||
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt;
|
||||
package com.xncoding.jwt;
|
||||
|
||||
import org.junit.runner.RunWith;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt;
|
||||
package com.xncoding.jwt;
|
||||
|
||||
import org.apache.commons.net.ftp.FTPClient;
|
||||
import org.apache.commons.net.ftp.FTPFile;
|
@ -1,7 +1,7 @@
|
||||
package com.enzhico.jwt;
|
||||
package com.xncoding.jwt;
|
||||
|
||||
import com.enzhico.jwt.api.model.VersionParam;
|
||||
import com.enzhico.jwt.shiro.ShiroKit;
|
||||
import com.xncoding.jwt.api.model.VersionParam;
|
||||
import com.xncoding.jwt.shiro.ShiroKit;
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import io.github.swagger2markup.markup.builder.MarkupLanguage;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt;
|
||||
package com.xncoding.jwt;
|
||||
|
||||
import io.github.swagger2markup.GroupBy;
|
||||
import io.github.swagger2markup.Language;
|
@ -1,4 +1,4 @@
|
||||
package com.enzhico.jwt.common.util;
|
||||
package com.xncoding.jwt.common.util;
|
||||
|
||||
import org.junit.Test;
|
||||
|
@ -1,7 +1,7 @@
|
||||
package com.enzhico.jwt.socket.client;
|
||||
package com.xncoding.jwt.socket.client;
|
||||
|
||||
import com.enzhico.jwt.common.util.JsonConverter;
|
||||
import com.enzhico.jwt.socket.model.LoginRequest;
|
||||
import com.xncoding.jwt.common.util.JsonConverter;
|
||||
import com.xncoding.jwt.socket.model.LoginRequest;
|
||||
import io.socket.client.Ack;
|
||||
import io.socket.client.IO;
|
||||
import io.socket.client.Socket;
|
||||
@ -31,7 +31,7 @@ public class SocketClient {
|
||||
options.reconnectionDelay = 1000; // 失败重连的时间间隔(ms)
|
||||
options.timeout = 20000; // 连接超时时间(ms)
|
||||
options.forceNew = true;
|
||||
options.query = "username=test1&password=test1&appid=com.enzhico.apay2";
|
||||
options.query = "username=test1&password=test1&appid=com.xncoding.apay2";
|
||||
socket = IO.socket("http://localhost:9099/", options);
|
||||
// socket = IO.socket("http://123.207.66.156:9099/", options);
|
||||
socket.on(Socket.EVENT_CONNECT, new Emitter.Listener() {
|
@ -1,9 +1,9 @@
|
||||
package com.enzhico.jwt.socket.client;
|
||||
package com.xncoding.jwt.socket.client;
|
||||
|
||||
import com.enzhico.jwt.api.model.BaseResponse;
|
||||
import com.enzhico.jwt.api.model.JoinBindResponse;
|
||||
import com.enzhico.jwt.api.model.PosParam;
|
||||
import com.enzhico.jwt.common.util.JsonConverter;
|
||||
import com.xncoding.jwt.api.model.BaseResponse;
|
||||
import com.xncoding.jwt.api.model.JoinBindResponse;
|
||||
import com.xncoding.jwt.api.model.PosParam;
|
||||
import com.xncoding.jwt.common.util.JsonConverter;
|
||||
import io.socket.client.Ack;
|
||||
import io.socket.client.IO;
|
||||
import io.socket.client.Socket;
|
||||
@ -32,7 +32,7 @@ public class SocketClient2 {
|
||||
options.timeout = 6000; // 连接超时时间(ms)
|
||||
options.forceNew = true;
|
||||
options.query = "token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhcHBpZCI6ImNvbS5lbnpoaWNvLmFkbWlucGF5IiwiaW1laSI6Ijg2NjAzMzAzMDkwNjAwMCIsImV4cCI6MTUxNjc5OTM5MCwidXNlcm5hbWUiOiJhZG1pbiJ9.tmw6Ac46Wjad9hR-xT6RWHHwfviEqML5_2iK9zI1HeY";
|
||||
socket = IO.socket("https://test.enzhico.net/", options);
|
||||
socket = IO.socket("https://test.xncoding.net/", options);
|
||||
socket.on(Socket.EVENT_CONNECT, new Emitter.Listener() {
|
||||
@Override
|
||||
public void call(Object... args) {
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user