api-server icon indicating copy to clipboard operation
api-server copied to clipboard

OpenSCRM是一套基于Go和React的高质量企业微信私域流量管理系统 。遵守Apache2.0协议,全网唯一免费商用。企业微信、私域流量、SCRM。

Results 16 api-server issues
Sort by recently updated
recently updated
newest added

我没有时间维护这个项目,且没有使用场景。 有兴趣维护这个项目的同学可以一起来维护,成为contributor。

help wanted

数据库连接不上

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) ,修改基本信息时字段不匹配也会报错。

![image](https://user-images.githubusercontent.com/17923218/156678289-cf3f49ed-0c04-4a49-87e4-bdfe7f847e10.png)

![image](https://github.com/openscrm/api-server/assets/8952579/645aebb4-87f5-42c4-a6ec-d75f2a8b12a5) 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...

![微信图片_20240116184857](https://github.com/openscrm/api-server/assets/16871008/bcf5ed8c-c4e6-4cb0-9be6-313e1e856137) ![微信截图_20240116184735](https://github.com/openscrm/api-server/assets/16871008/05748057-eeb7-4afa-8360-10d784f69792) 为啥这个二维码出不来,login接口总是报502错误呢?还是需要配置白名单? 是我配置信息少填了的原因吗? 而且现在客户联系Secret 好像无法直接获取了 get all departments from wx failed,纳闷...