icon-issue-opened"> 工单管理 0 合并请求 0 提交历史 543 版本发布 0

543 次代码提交 (917f2df489c6f6d094928fe0c4f2b100b79926d2)

作者 SHA1 备注 提交日期
  Brightcells 30d24179d9 add refused relative 9 年之前
  Brightcells 6fb6025912 hideOptionMenu in wx & display status & forbidden modify after Actived 9 年之前
  Brightcells 08f87a7634 add wechat diy share for lensman_oauth 9 年之前
  Brightcells 77023892d9 add wechat diy share for lensman_oauth 9 年之前
  Brightcells 6faf4d4d8c fix bug: WECHAT_REDIRECT_URI not exists 9 年之前
  Brightcells d0affd4b01 add lensman_oauth page 9 年之前
  Brightcells 7bd5e500b8 add hiredis package & upgrade some package 9 年之前
  Brightcells 40165198cd change to use redis.ConnectionPool 9 年之前
  Brightcells 6102143d8e reduce balance 9 年之前
  Brightcells 92da943e9e check wx_uid for api wx_balance_withdraw_api 9 年之前
  Brightcells fa2729a4e1 add api wx_balance_withdraw_api 9 年之前
  Brightcells d3fd6adf70 add api lensman_login_api/lensman_upload_photo_api 9 年之前
  Brightcells 6d6c8485ce bind LensmanInfo and UserInfo 9 年之前
  Brightcells b2cf473db5 optimize pagination 9 年之前
  Brightcells 54dd8f095f update requirements 9 年之前
  Brightcells fa36c26ce4 extend param to_uid for comment_submit_api 9 年之前
  Brightcells abc5fdce05 fix bug multi message for photo owner 9 年之前
  Brightcells 3c11ca7b16 fix bug multi message for photo owner 9 年之前
  Brightcells 9618c6d3bd add var for jswe.js 9 年之前
  Brightcells 09d7f479cb fix bug import GROUP_PHOTO_WATCHER_SET 9 年之前
  Brightcells 2a7e6d170d sadd user_id into GROUP_PHOTO_WATCHER_SET 9 年之前
  Brightcells 9ae03cd4df refresh GROUP_PHOTO_COMMENT_LIST/GROUP_PHOTO_THUMB_UP_LIST 9 年之前
  Brightcells 86aa86bbba add GROUP_PHOTO_WATCHER_SET 9 年之前
  Brightcells 47eb096687 fix bug add cls=DjangoJSONEncoder for json.dumps 9 年之前
  Brightcells e920b279d1 send message for all watched users 9 年之前
  Brightcells 1a0427282e change to auto_response of django-json-response 9 年之前
  Brightcells 29185bf2d4 reback to use raw sql instead of records 9 年之前
  Brightcells a02504cc21 Fix Bug: created_at format error 9 年之前
  Brightcells 148da098dd add wexin diy share for session_detail 9 年之前
  Brightcells 5a00022a72 close debug 9 年之前
  Brightcells 4f1aa43391 nonceStr 9 年之前
  Brightcells f3edf9f11f add wexin diy share 9 年之前
  Brightcells 8f43551640 add api wx_jsapi_signature_api 9 年之前
  Brightcells b5857bab0c dialect[+driver]://user:password@host/dbname[?key=value..] 9 年之前
  Brightcells d50a6c1bae update django-detect in requirements.txt 9 年之前
  Brightcells 3253541b10 change to exec raw sql from django.db.connection to records 9 年之前
  Brightcells 8263625d9c new website 9 年之前
  Brightcells 8d6858fb00 adjust website content 9 年之前
  Brightcells 80a3496489 fix user join group by session after remove 9 年之前
  Brightcells e4567ea2de fix call set_group_users_info after group user removed 9 年之前
  Brightcells 1e620ebab6 *_download.html 9 年之前
  Brightcells 2f29afecbd modify version in operation 9 年之前
  Brightcells 65ab52f95a spell error 9 年之前
  Brightcells 535ac34ee1 add api download_api 9 年之前
  Brightcells af2b3f483f change download.html to be generated from download.tmpl.html 9 年之前
  Brightcells 696c8d2e2b adjust download section of photo_detail/session_detail 9 年之前
  Brightcells 9671c0e989 wrongly written or mispronounced characters 9 年之前
  Brightcells 5a0b6447ca change RotatingFileHandler to TimedRotatingFileHandler to support rotation of disk log files at certain timed intervals. 9 年之前
  Brightcells cce055cdf4 change FileHandler to RotatingFileHandler to to supports rotation of disk log files. 9 年之前
  Brightcells 51959f199b remove overflow: hidden; 9 年之前
kodo - Gogs: Go Git Service

Sin Descripción

views.py 907B

    # -*- coding: utf-8 -*- from django.conf import settings from django_redis_connector import connector from pywe_storage import RedisStorage from pywe_user import get_all_users from utils.redis.rkeys import SUBSCRIBE_USERINFO_LIST r1 = connector(settings.REDIS.get('db1', {})) WECHAT = settings.WECHAT def fetch_users_func(authorizer_appid, infos): print(authorizer_appid, infos) openids = infos.get('data', {}).get('openid', []) for openid in openids: r1.rpushjson(SUBSCRIBE_USERINFO_LIST % authorizer_appid, { 'brand_id': authorizer_appid, 'openid': openid }) def fetch_all_users(brand_id): wxcfg = WECHAT.get('{}:JSAPI'.format(brand_id), {}) appid = wxcfg.get('appID') secret = wxcfg.get('appsecret') get_all_users(appid=appid, secret=secret, storage=RedisStorage(r1), authorizer_appid=brand_id, users_func=fetch_users_func)