Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是退出操作后,重新登陆,企业列表数据消失 #18

Closed
gaoyunch opened this issue Jan 24, 2021 · 6 comments · Fixed by #23 or #25
Closed

是退出操作后,重新登陆,企业列表数据消失 #18

gaoyunch opened this issue Jan 24, 2021 · 6 comments · Fixed by #23 or #25
Assignees

Comments

@gaoyunch
Copy link

我用的环境

  • PHP 版本:7.4.14
  • MoChat 版本:master
  • Swoole 版本:4.6.1

问题及现象

RT

2021-01-24.3.43.02.mov
@isettle
Copy link
Collaborator

isettle commented Jan 25, 2021

@gaoyunch
一、暂时处理方案:用该超管的手机号,在企业微信后台的员工管理,新添加一个员工

二、我们的计划:

这个原产品设计思路是,这个超管必须是已添加企业的员工。因为即使是超管,如果不属于任何企业,那么官网微信接口将无法有效调用

但是为了更好的完善这个系统,这块的业务企业关联,我们计划分离出来,脱离企业而操作相应数据。之后会有相应commit合并,请之后查看

@gaoyunch
Copy link
Author

这个手机号原本就是这个企业的员工

@gaoyunch
Copy link
Author

@Stone-Ice 不过这个手机号关联了多个企业,是这个原因吗?

@isettle
Copy link
Collaborator

isettle commented Jan 26, 2021

@gaoyunch 可以拉取1.x分支更新一下代码。另外,因为此次设计的变更(当然,为了更好的接入CRM系统),波及到了租户。所以需要更新一下企业表,如下

ALTER TABLE `mochat`.`mc_corp` 
ADD COLUMN `tenant_id` int(11) NULL DEFAULT 0 COMMENT '租户ID' AFTER `encoding_aes_key`;

另外,api-server/storage/install/mochat.sql也已同步更新。

@wang-peiyan
Copy link
Collaborator

wang-peiyan commented Jan 26, 2021

@Stone-Ice 还需要兼容老数据,需要执行

update `mc_corp` set `tenant_id` = 1;

@gaoyunch
Copy link
Author

我是初始化项目重新测试

https://user-images.githubusercontent.com/30514120/105844528-5107a500-6014-11eb-8ab1-1d871a79e427.mov
重新登录还是会有422选择企业的错误,后续操作都正常 @peiyan-w @Stone-Ice

@isettle isettle closed this as completed Feb 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment