Commit d22369c5 by 陈浩建

分销员-字段

parent 7e5a766b
...@@ -84,6 +84,11 @@ public class HhrUser implements Serializable{ ...@@ -84,6 +84,11 @@ public class HhrUser implements Serializable{
*/ */
private String wxNickName; private String wxNickName;
/**
* 分销员
*/
private String fxs;
// 非数据库字段 // 非数据库字段
/** /**
......
...@@ -28,7 +28,7 @@ public class Constant { ...@@ -28,7 +28,7 @@ public class Constant {
public final static String CLIENTNUMBER = "xyzxyql"; //商户标识,由穗易付平台统一分配 public final static String CLIENTNUMBER = "xyzxyql"; //商户标识,由穗易付平台统一分配
public final static String APPK = "E805F0305C455BA7C5BAE3796C6500BD"; //KEY 商户标识,由穗易付平台统一分配 public final static String APPK = "E805F0305C455BA7C5BAE3796C6500BD"; //KEY 商户标识,由穗易付平台统一分配
public final static String KEY = "E805F0305C455BA7C5BAE3796C6500BD"; //商户标识,由穗易付平台统一分配 public final static String key_VALUE = "E805F0305C455BA7C5BAE3796C6500BD"; //商户标识,由穗易付平台统一分配
public final static String USERNAME = "apitest"; //智能平台提供测试的账号 public final static String USERNAME = "apitest"; //智能平台提供测试的账号
public final static String USERNAMEKEY = "46b97294d4dac3f62ee42f3ab2804f68"; //智能平台提供的测试key public final static String USERNAMEKEY = "46b97294d4dac3f62ee42f3ab2804f68"; //智能平台提供的测试key
public final static String ZHENGSHIAUCCON = "ruany"; //智能平台提供的正式账号 public final static String ZHENGSHIAUCCON = "ruany"; //智能平台提供的正式账号
......
...@@ -147,11 +147,11 @@ public class EThreeDES { ...@@ -147,11 +147,11 @@ public class EThreeDES {
public static void main(String[] args) throws IOException public static void main(String[] args) throws IOException
{ {
EThreeDES eThreeDES = new EThreeDES(); EThreeDES eThreeDES = new EThreeDES();
String KEY = "C314BONC3C85E86KK996WSWS"; //密匙 String key_VALUE = "C314BONC3C85E86KK996WSWS"; //密匙
//加密 //加密
String original = "{termNo:\"yxsst_ht191106\", orderTime:\"2021-01-27 11:30:00\", prodName:\"套餐名称\", reqCode:\"GZ202101261234567\", subsCode: [\"611234\", \"612345\", \"611226\"], custName:\"张*三\", certNo: \"4401**********1234\", accNbr:\"13888888888\", orderState: \"S0K\", orderStateName:\"已完成/已取卡\", payState: \"1\", crmStateName:\"完工\", crmStateReason:\"000\", recNo:\"0200202101251030423400027500\"}"; String original = "{termNo:\"yxsst_ht191106\", orderTime:\"2021-01-27 11:30:00\", prodName:\"套餐名称\", reqCode:\"GZ202101261234567\", subsCode: [\"611234\", \"612345\", \"611226\"], custName:\"张*三\", certNo: \"4401**********1234\", accNbr:\"13888888888\", orderState: \"S0K\", orderStateName:\"已完成/已取卡\", payState: \"1\", crmStateName:\"完工\", crmStateReason:\"000\", recNo:\"0200202101251030423400027500\"}";
byte[] eBy = EThreeDES.encryptMode(KEY.getBytes(),original.getBytes()); byte[] eBy = EThreeDES.encryptMode(key_VALUE.getBytes(),original.getBytes());
String eBase64 = eThreeDES.enBase64(eBy); String eBase64 = eThreeDES.enBase64(eBy);
System.out.println("3DES加密后的字符串:" + eBase64); System.out.println("3DES加密后的字符串:" + eBase64);
......
...@@ -5,6 +5,7 @@ import com.winsun.auth.model.user.User; ...@@ -5,6 +5,7 @@ import com.winsun.auth.model.user.User;
import com.winsun.base.AppApplicationBaseIT; import com.winsun.base.AppApplicationBaseIT;
import com.winsun.item.modular.system.dao.UserMapper; import com.winsun.item.modular.system.dao.UserMapper;
import com.winsun.item.util.LoginUtils; import com.winsun.item.util.LoginUtils;
import com.winsun.utils.RandomUtil;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.junit.Test; import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -22,14 +23,17 @@ public class UserTestHelper extends AppApplicationBaseIT { ...@@ -22,14 +23,17 @@ public class UserTestHelper extends AppApplicationBaseIT {
@Test @Test
public void decryptPwd() { public void decryptPwd() {
final String account = "18028801118"; // final String account = "18028801118";
User user = mapper.getByAccount(account); // User user = mapper.getByAccount(account);
if(user == null) { // if(user == null) {
throw new NullPointerException("解密用户信息失败,用户不存在"); // throw new NullPointerException("解密用户信息失败,用户不存在");
} // }
log.info(user.getPassword()); // log.info(user.getPassword());
// 证明MD5无法解密 // // 证明MD5无法解密
ResponseData<String> pwdDecrypt = LoginUtils.pwdDecrypt(user.getPassword()); // ResponseData<String> pwdDecrypt = LoginUtils.pwdDecrypt(user.getPassword());
log.info("{}", pwdDecrypt.getData()); // log.info("{}", pwdDecrypt.getData());
String orderSeq = RandomUtil.RandomNumber(32);
System.out.println(orderSeq);
} }
} }
...@@ -26,7 +26,7 @@ public class Constant { ...@@ -26,7 +26,7 @@ public class Constant {
/*支付参数*/ /*支付参数*/
public final static String CLIENTNUMBER = "xyzxyql"; //商户标识,由穗易付平台统一分配 public final static String CLIENTNUMBER = "xyzxyql"; //商户标识,由穗易付平台统一分配
public final static String KEY = "E805F0305C455BA7C5BAE3796C6500BD"; //商户标识,由穗易付平台统一分配 public final static String key_VALUE = "E805F0305C455BA7C5BAE3796C6500BD"; //商户标识,由穗易付平台统一分配
public final static String USERNAME = "apitest"; //智能平台提供测试的账号 public final static String USERNAME = "apitest"; //智能平台提供测试的账号
public final static String USERNAMEKEY = "46b97294d4dac3f62ee42f3ab2804f68"; //智能平台提供的测试key public final static String USERNAMEKEY = "46b97294d4dac3f62ee42f3ab2804f68"; //智能平台提供的测试key
public final static String ZHENGSHIAUCCON = "ruany"; //智能平台提供的正式账号 public final static String ZHENGSHIAUCCON = "ruany"; //智能平台提供的正式账号
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment