wangzhibo
5 天以前 50e5cdbaceee71f000341a434620d10a87b582f5
src/modules/user/service/wx.ts
@@ -74,9 +74,9 @@
   * @param userId
   * @param type 0-小程序 1-公众号 2-App
   */
  async getOpenid(userId: number, type = 0) {
  async getOpenid(userId: string, type = 0) {
    const user = await this.userInfoEntity.findOneBy({
      id: Equal(userId),
      unionid: Equal(userId),
      status: 1,
    });
    if (!user) {