Coder Social home page Coder Social logo

Comments (6)

isettle avatar isettle commented on August 24, 2024

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

二、我们的计划:

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

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

from mochat.

gaoyunch avatar gaoyunch commented on August 24, 2024

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

from mochat.

gaoyunch avatar gaoyunch commented on August 24, 2024

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

from mochat.

isettle avatar isettle commented on August 24, 2024

@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也已同步更新。

from mochat.

wang-peiyan avatar wang-peiyan commented on August 24, 2024

@stone-ice 还需要兼容老数据,需要执行

update `mc_corp` set `tenant_id` = 1;

from mochat.

gaoyunch avatar gaoyunch commented on August 24, 2024

我是初始化项目重新测试

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

from mochat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.