Commit a93b860c by weijiguang

.

parent db0c7a91
...@@ -66,6 +66,7 @@ public class WeixinController { ...@@ -66,6 +66,7 @@ public class WeixinController {
ajax.put(Constants.TOKEN, decrypt.get("token")); ajax.put(Constants.TOKEN, decrypt.get("token"));
ajax.put("phoneNumber", decrypt.get("phoneNumber")); ajax.put("phoneNumber", decrypt.get("phoneNumber"));
ajax.put("customerName", decrypt.get("customerName")); ajax.put("customerName", decrypt.get("customerName"));
ajax.put("openId", decrypt.get("openId"));
return ajax; return ajax;
} }
......
...@@ -807,6 +807,9 @@ public class WeixinServiceImpl { ...@@ -807,6 +807,9 @@ public class WeixinServiceImpl {
map.put("token", token); map.put("token", token);
map.put("phoneNumber", encDataInf.getString("phoneNumber")); map.put("phoneNumber", encDataInf.getString("phoneNumber"));
map.put("customerName", customer.getUserName()); map.put("customerName", customer.getUserName());
if (customer.getTestFlag() != null && customer.getTestFlag()) {
map.put("openId", customer.getId());
}
log.info("token:{}, phoneNumber:{}, customerName:{}", token, encDataInf.getString("phoneNumber"), customer.getUserName()); log.info("token:{}, phoneNumber:{}, customerName:{}", token, encDataInf.getString("phoneNumber"), customer.getUserName());
return map; return map;
} catch (Exception e) { } catch (Exception e) {
......
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