Commit 2c877162 by 徐高华

企微托管账号

parent 5d315cb8
......@@ -16,6 +16,7 @@ public class OpenStaffDTO implements Serializable {
* 企微id
*/
private String wxEnterpriseId;
private String enterpriseId ;
/**
* 成员id
......@@ -107,6 +108,14 @@ public class OpenStaffDTO implements Serializable {
*/
private static final long serialVersionUID = 1L;
public String getEnterpriseId() {
return enterpriseId;
}
public void setEnterpriseId(String enterpriseId) {
this.enterpriseId = enterpriseId;
}
public Integer getValidQrcodeFlag() {
return validQrcodeFlag;
}
......
......@@ -83,7 +83,13 @@ public class QywxCallbackController extends WebBaseController {
private void chat(String uuid, JSONObject json) {
logger.info("消息");
this.openQwApiService.saveChatLog(json.getLong("sender"),json.getLong("receiver"),json.getString("content"),1) ;
int msgtype = json.getIntValue("msgtype") ;
if(msgtype==2) {
msgtype = 2 ;
}else {
msgtype = 1 ;
}
this.openQwApiService.saveChatLog(json.getLong("sender"),json.getLong("receiver"),json.getString("content"),msgtype) ;
}
private void v100012(String uuid , JSONObject json) {
......
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