api-server
api-server copied to clipboard
OpenSCRM是一套基于Go和React的高质量企业微信私域流量管理系统 。遵守Apache2.0协议,全网唯一免费商用。企业微信、私域流量、SCRM。
数据库连接不上
数据库连接不上
model目录下的mass_msg_staff.go文件的struct,建议将MassMsgId属性的gorm:"index;type:bigint"改为gorm:"index;type:varchar(64)",由于QueryExtStaffids方法中第一个where语句的mysql的in函数需要字段类型与in中类型匹配,前端MassMsgId是string类型,而mysql中是bigint类型,会导致搜索不匹配,后续不判空会报index [0] out of range 错误。 同理,file_size字段也是bigint,调用parse-url接口时前端填写的fileSize是空字符串”“,与数据库字段不匹配,素材库页面解析网页功能不可用,要么在前端改类型。 客户详情age字段前端没有限定num类型和长度,数据库是tinyint(3) ,修改基本信息时字段不匹配也会报错。

 2024-03-05T22:30:12.053+0800 ERROR services/department.go:37 get all depar, Msg: "api forbidden for contact assistant, hint: [1709649011424270725404086], from work.weixin.qq.com/devtool/query?e=48009" } openscrm/app/services.Department.Sync D:/Porduct/GO/api-server/app/services/department.go:37 openscrm/app/services.Syncs D:/Porduct/GO/api-server/app/services/init.go:19 main.init.0 D:/Porduct/GO/api-server/main.go:59 runtime.doInit C:/Users/gaode/sdk/go1.19.10/src/runtime/proc.go:6330 runtime.main C:/Users/gaode/sdk/go1.19.10/src/runtime/proc.go:233 panic: ClientError...
  为啥这个二维码出不来,login接口总是报502错误呢?还是需要配置白名单? 是我配置信息少填了的原因吗? 而且现在客户联系Secret 好像无法直接获取了 get all departments from wx failed,纳闷...