uncate">Update requirements.txt 9 年之前   Brightcells 019a4588d3 Fix Bug: lost 'from django.conf import settings' 9 年之前   Brightcells 88014f32b7 Remove unused vars in settings.py 9 年之前   Brightcells 42f466c0a5 Change to use django-ip to get client ip 9 年之前   Brightcells 3d1118760c Change to 'r.REDIS_EXPIRED_xx_xx' 9 年之前   Brightcells 246a9ff4b8 Change to 'from utils.redis.connect import r' 9 年之前   Brightcells 0a58248c81 Realize tour guide upload photo when auth in FE 9 年之前   Brightcells 0d046d557e Return order detail for api wx_order_detail_api 9 年之前   Brightcells d19a7d5efb Check tour guide group whether ended 9 年之前   Brightcells 58845b4fd7 Fix Bug: get_geo_submit_flag result error 9 年之前   Brightcells 5d13ae0917 Fix Bug: get_geo_submit_flag result error 9 年之前   Brightcells 634de2864a Update requirements.txt 9 年之前   Brightcells d31ffaa118 Update TODO 9 年之前   Brightcells 4f1aa7665d Add geo submit flag for api tgu_group_user_locations_api 9 年之前   Brightcells a9527e0247 Remove geo submit flag for api tg_group_detail_api 9 年之前   Brightcells cd287d6483 Add docstring for def set_geo_submit_flag 9 年之前   Brightcells a6660a7ab6 Realize set geo submit flag for api tg_group_detail_api 9 年之前   Brightcells 4d51c3e342 Basic realize set geo submit flag for api tg_group_detail_api 9 年之前   Brightcells 9b8d6f0f09 Update comment 9 年之前   Brightcells 2d33b37a4b DONE TODO: Sum(relative_persons) for api tg_group_detail_api 9 年之前   Brightcells 19fb5e3b2d DONE TODO: Remove tourguide for api tg_group_detail_api 9 年之前   Brightcells 8fb9461cba to 9 年之前   Brightcells 90d377ee6e Add gather location 9 年之前   Brightcells b62ab5aac1 Fix Bug: attentions and schedules update error 9 年之前   Brightcells 612465eec2 Logit body and res for api tg_group_update_api 9 年之前   Brightcells 4b68389146 Remove gather_info when gather_at expired for api pai2_tginfo_api 9 年之前   Brightcells 87ea86d2b1 Fix Bug: return not 200 cause duplicate upload 9 年之前   Brightcells 59def8d479 Add forbidden duplicate upload photo 9 年之前   Brightcells 214bbec976 Update requirements.txt & Change param ex_time to time 9 年之前   Brightcells 5d3befcd2b Update return format 9 年之前   Brightcells 564ff620d7 Add unique_together = (('group_id', 'user_id'),) for GroupUserInfo 9 年之前   Brightcells 95ee5c7b7a Add logit res for tgu_group_user_join_api 9 年之前   Brightcells facd48308b Add some TODO 9 年之前   Brightcells cdedcf94fd int 9 年之前   Brightcells 768af5a2ae Add list_filter for UserInfo 9 年之前   Brightcells 5a6012dac0 Fix Bug: should not login when not lensman/tourguide 9 年之前   Brightcells 9295b82620 Fix Bug: 'dict' object is not callable 9 年之前   Brightcells d4f34707b9 Return user_info of tgu_group_user_locations_api the same as tg_group_detail_api 9 年之前   Brightcells 0ab056c3fd Change ip_addr to get_client_ip 9 年之前   Brightcells 867e9f6d70 Fix Bug: tc.utc_string_to_utc_datetime return None 9 年之前   Brightcells 5c37fe6af6 Fix Bug: User Has Not Join Group 9 年之前   Brightcells a0f3a4d547 Fix Bug: invalid literal for int() with base 10: '' 9 年之前   Brightcells 3e0483e4b9 Fix Bug: invalid literal for int() with base 10: '' 9 年之前   Brightcells 272f181c50 Makemigrations 9 年之前   Brightcells 25b296f848 Add attentions/schedules for GroupInfo 9 年之前   Brightcells 4bc60b545c Call georem in tgu_group_user_remove_api 9 年之前   Brightcells 1fac624f0e Add paage tgu_group_detail 9 年之前   Brightcells ead8d009b7 Add src PAIAI_TOURGUIDE 9 年之前   Brightcells 633c2598ed Update TODO.md - Add Remove Unused Api 9 年之前   Brightcells 2b612334ac Add page tgu_group_user_detail 9 年之前   Brightcells 6e5652151a Add api tgu_group_user_remove_api 9 年之前   Brightcells 2b58707151 Remove unused imported rkeys 9 年之前   Brightcells 96e95b07af Change def name in groupuser_views 9 年之前   Brightcells 354c1d81a4 Remove unused group_pass_api/group_refuse_api 9 年之前   Brightcells 0ce7c01088 Move group user relative from group/views.py to group/groupuser_views.py 9 年之前   Brightcells 897377a01f Add default geo location (0, 0) when tgu join 9 年之前   Brightcells c96e9e8a02 Remove unnecessary u 9 年之前   Brightcells b065bf7b3a Remove unnecessary u 9 年之前   Brightcells a229908ca3 Return user_info for api tgu_group_user_locations_api 9 年之前   Brightcells 88f0697a89 Add authority field for GroupUserInfo 9 年之前   Brightcells 7d92e79eb9 Remove param group_id from tg_group_token_api/tg_group_transfer_api 9 年之前   Brightcells f818f4127f Docstring simplify 9 年之前   Brightcells 6611c5f373 Add pai2_tginfo_api 9 年之前   Brightcells 70f5faad11 Add tg_group_token_api/tg_group_transfer_api 9 年之前   Brightcells 034acddb68 Add total_persons for GroupInfo 9 年之前   Brightcells dd05cee84f ms=False 9 年之前   Brightcells ec742cc719 Add current_time for TOUR_GUIDE_GROUP_USER_GEO_LIST 9 年之前   Brightcells 3719743219 Add params name/phone/relative_person/remark 9 年之前   Brightcells 0df90d650b Add TOUR_GUIDE_GROUP_CUR_GATHER_INFO 9 年之前   Brightcells 3baf694bff Should only update when started_at and ended_at is'nt null 9 年之前   Brightcells af76a40fe7 Fix Bug: TypeError: replace() takes no keyword arguments 9 年之前   Brightcells ad69866b26 Add tour guide's name and phone in GroupInfo 9 年之前   Brightcells f724e0f9c0 Add tour guide apis 9 年之前   Brightcells 8a213207ea Add tour guide oauth 9 年之前   Brightcells 2482ef26b8 Update requirements.txt - install redis from Github 9 年之前   Brightcells aae733e82b Update requirements.txt 9 年之前   Brightcells 498de86432 Update requirements.txt 9 年之前   Brightcells fc07c98146 Update requirements.txt 9 年之前   Brightcells 7cc3030f61 Update requirements.txt 9 年之前   Brightcells 5c03fde009 Update requirements.txt 9 年之前   Brightcells 6bd393cf87 Update requirements.txt 9 年之前   Brightcells aac3532bd8 kkconst => StatusCode 10 年之前   Brightcells fbf7b8bfcd Update requirements.txt 10 年之前   Brightcells 3672ed9c5f Update requirements.txt 10 年之前   Brightcells 0c17cbe911 Update requirements.txt 10 年之前   Brightcells 0b25b2d7b4 Update requirements.txt 10 年之前   Brightcells 6d22a1c0d3 UnicodeEncodeError: 'ascii' codec can't encode character u'\uff12' in position 6: ordinal not in range(128) 10 年之前   Brightcells e440bc76ee Change to use pywe-oauth 10 年之前   Brightcells ae3932e9e6 Update requirements.txt 10 年之前   Brightcells f016f89541 Update kwargs for response in response_utils.py 10 年之前   Brightcells 443ec910e9 Update response in response_utils 10 年之前   Brightcells 7111961986 Return session_id in api pai2_home_api 10 年之前   Brightcells 347e920d39 Return session_id grouped photos in group_join_api & Return session_id in photo detail 10 年之前   Brightcells 7dd4575a8c Add select_for_update for UserInfo/OrderInfo/GroupPhotoOrderInfo 10 年之前   Brightcells c329660c26 Fix: const variable require all letters capital 10 年之前   Brightcells 36e351b13d Update errno 10 年之前   Brightcells e47798ebe0 Return group_photos group by session_id 10 年之前   Brightcells 8e7c94e2ef Add parameter group_id for lensman_photo_upload_api 10 年之前   Brightcells 9fd8002931 Update requirements.txt 10 年之前   khb 3e9d466d86 Update requirements.txt 10 年之前   Brightcells f40ea0a414 Fix call session_join_api after group_quit_api 10 年之前   Brightcells e06dc10006 Make join session group by scan group qrcode fetch group photos initio 10 年之前   Brightcells c7abce172a Rename field name 10 年之前   Brightcells da19301800 Update set_brief_info after origin photo upload 10 年之前   Brightcells 84e77dd54d Fix duplicate delete for api /l/origin_upload 10 年之前   Brightcells e249360c0c Add freeze_balance for lensman/user 10 年之前   Brightcells c2b994efc2 Update requirements.txt 10 年之前   Brightcells d79857ed0e lensman balance decr when origin deleted & update redis 10 年之前   Brightcells e4c95c78c7 tstrip 10 年之前   Brightcells dd00e3b1a9 add api online_api 10 年之前   Brightcells 7f27864ab9 update requirements.txt 10 年之前   Brightcells 4a8f8ff2b8 update requirements.txt 10 年之前   Brightcells b7b3dcffc3 restructure haggle_price 10 年之前   Brightcells 972ab1e3b8 add StreamHandler 10 年之前   Brightcells 5b678f8553 fix bug: price be negative 10 年之前   Brightcells 4ff159f583 update error code 10 年之前   Brightcells ac85066b8b set status_code default 200 10 年之前   Brightcells c761b9cf4c add page price 10 年之前   Brightcells ba8098eaae fix bug: get_group_users_info error when not in redis 10 年之前   Brightcells 9b5e3da7fb fix group user quit bug 10 年之前   Brightcells 994db88de2 return price_fixed in lensman_brief_api 10 年之前   Brightcells 23f00aedae fix bug: ValueError: invalid literal for int() with base 10: 'origin' 10 年之前   Brightcells 07da1c3383 add order_id for lensman_origin_photo_upload_api & check multi paid 10 年之前   Brightcells 7691894d4b filter pay_status=OrderInfo.PAID for api lensman_origin_wanted_api 10 年之前   Brightcells 684b876a38 price_fixed store in redis & update api lensman_photo_price 10 年之前   Brightcells 4fdd237863 add api price_fix 10 年之前   Brightcells a45976ca99 update brief returns 10 年之前   Brightcells 1ee8b5e061 add group_photo_info for lensdata 10 年之前   Brightcells 4ff27acb27 @property 10 年之前   Brightcells 27d3ec8fb1 add src for LatestAppInfo/SplashInfo 10 年之前   Brightcells c12df969e1 add origin_expired_stamps 10 年之前   Brightcells b65f84e502 Duplicate entry 10 年之前   Brightcells 232b73e861 lensman upload photo in lensman_app should not see in user_app 10 年之前   Brightcells 6199c8f7ad add api lensman_origin_wanted_api/lensman_origin_photo_upload_api 10 年之前   Brightcells ac69b15c9b update requirements.txt 10 年之前   Brightcells 963dca9588 update requirements.txt 10 年之前   Brightcells b6b46b302b update requirements.txt 10 年之前   Brightcells b68c637678 update redis-extensions 10 年之前   Brightcells 561491e543 fix bug: AttributeError: 'module' object has no attribute 'ConnectionPool' 10 年之前   Brightcells ae502c940d fix bug: AttributeError: 'module' object has no attribute 'StrictRedis' 10 年之前   Brightcells 48995aae69 update redis_extensions —— class StrictRedisExtensions(StrictRedis) 10 年之前   Brightcells 05faf3c5db update lensman_brief_api 10 年之前   Brightcells 8c384ff52e remove to_lid 10 年之前   Brightcells 8468d9f9c5 remove to_lid 10 年之前   Brightcells f7b627af9b update lensman_brief_api 10 年之前   Brightcells 21b4a5403a add api lensman_brief_api 10 年之前   Brightcells ee7388cd15 add src for SystemMessageInfo 10 年之前   Brightcells 49f3749ebd remove param current_id and returns current_id/photos for lensman_photo_upload_api 10 年之前   Brightcells 2b26ecad19 update requirements.txt 10 年之前   Brightcells f93199e23c update requirements.txt 10 年之前   Brightcells 9ab6aee69e update requirements.txt 10 年之前   Brightcells 08be7a1f9f change to use RedisListHandler 10 年之前   Brightcells d73fdb7cd2 async/multi_pop uuids 10 年之前   Brightcells 744ff384c2 update wx share link 10 年之前   Brightcells 05e046c8ca fix bug: errcode=48001 when scope=snsapi_base 10 年之前   Brightcells 3b39460e59 update wechat relative 10 年之前   Brightcells 48c5514e05 update jswe.js 10 年之前   Brightcells c81acc73e4 update DATABASES comment 10 年之前   Brightcells 32b6dfd487 add redis_conf 10 年之前   Brightcells 3fe58578d8 update requirements.txt 10 年之前   Brightcells 7dee2f9449 update requirements.txt 10 年之前   Brightcells 2eb44593ee fix bug: logs lost using ConcurrentRotatingFileHandler 10 年之前   Brightcells c7071ae7f1 wx_uid to openid 10 年之前   Brightcells 9b0b9c0587 fix bug: int error 10 年之前   Brightcells a71f3c569b add src for feedback 10 年之前   Brightcells f07f4fc893 JsonResponse to response 10 年之前   Brightcells 72890dc75c user to user_id 10 年之前   Brightcells 7161824a44 session to session_id 10 年之前   Brightcells 57e79f38df fix bug: Duplicate entry 'xxx' for key 'user_id' 10 年之前   Brightcells 3af14d4a96 fix bug: Duplicate entry 'xxx' for key 'account_userinfo_unionid_3c1f5d4e4e1b84a9_uniq 10 年之前   Brightcells 6626af8a8d add api lensman_wx_authorize_api 10 年之前   Brightcells 30d24179d9 add refused relative 10 年之前   Brightcells 6fb6025912 hideOptionMenu in wx & display status & forbidden modify after Actived 10 年之前   Brightcells 08f87a7634 add wechat diy share for lensman_oauth 10 年之前   Brightcells 77023892d9 add wechat diy share for lensman_oauth 10 年之前   Brightcells 6faf4d4d8c fix bug: WECHAT_REDIRECT_URI not exists 10 年之前   Brightcells d0affd4b01 add lensman_oauth page 10 年之前   Brightcells 7bd5e500b8 add hiredis package & upgrade some package 10 年之前   Brightcells 40165198cd change to use redis.ConnectionPool 10 年之前   Brightcells 6102143d8e reduce balance 10 年之前   Brightcells 92da943e9e check wx_uid for api wx_balance_withdraw_api 10 年之前   Brightcells fa2729a4e1 add api wx_balance_withdraw_api 10 年之前   Brightcells d3fd6adf70 add api lensman_login_api/lensman_upload_photo_api 10 年之前   Brightcells 6d6c8485ce bind LensmanInfo and UserInfo 10 年之前   Brightcells b2cf473db5 optimize pagination 10 年之前   Brightcells 54dd8f095f update requirements 10 年之前   Brightcells fa36c26ce4 extend param to_uid for comment_submit_api 10 年之前   Brightcells abc5fdce05 fix bug multi message for photo owner 10 年之前   Brightcells 3c11ca7b16 fix bug multi message for photo owner 10 年之前   Brightcells 9618c6d3bd add var for jswe.js 10 年之前   Brightcells 09d7f479cb fix bug import GROUP_PHOTO_WATCHER_SET 10 年之前   Brightcells 2a7e6d170d sadd user_id into GROUP_PHOTO_WATCHER_SET 10 年之前   Brightcells 9ae03cd4df refresh GROUP_PHOTO_COMMENT_LIST/GROUP_PHOTO_THUMB_UP_LIST 10 年之前   Brightcells 86aa86bbba add GROUP_PHOTO_WATCHER_SET 10 年之前   Brightcells 47eb096687 fix bug add cls=DjangoJSONEncoder for json.dumps 10 年之前   Brightcells e920b279d1 send message for all watched users 10 年之前   Brightcells 1a0427282e change to auto_response of django-json-response 10 年之前   Brightcells 29185bf2d4 reback to use raw sql instead of records 10 年之前   Brightcells a02504cc21 Fix Bug: created_at format error 10 年之前   Brightcells 148da098dd add wexin diy share for session_detail 10 年之前   Brightcells 5a00022a72 close debug 10 年之前   Brightcells 4f1aa43391 nonceStr 10 年之前   Brightcells f3edf9f11f add wexin diy share 10 年之前   Brightcells 8f43551640 add api wx_jsapi_signature_api 10 年之前   Brightcells b5857bab0c dialect[+driver]://user:password@host/dbname[?key=value..] 10 年之前   Brightcells d50a6c1bae update django-detect in requirements.txt 10 年之前   Brightcells 3253541b10 change to exec raw sql from django.db.connection to records 10 年之前   Brightcells 8263625d9c new website 10 年之前   Brightcells 8d6858fb00 adjust website content 10 年之前   Brightcells 80a3496489 fix user join group by session after remove 10 年之前   Brightcells e4567ea2de fix call set_group_users_info after group user removed 10 年之前   Brightcells 1e620ebab6 *_download.html 10 年之前   Brightcells 2f29afecbd modify version in operation 10 年之前   Brightcells 65ab52f95a spell error 10 年之前   Brightcells 535ac34ee1 add api download_api 10 年之前   Brightcells af2b3f483f change download.html to be generated from download.tmpl.html 10 年之前   Brightcells 696c8d2e2b adjust download section of photo_detail/session_detail 10 年之前   Brightcells 9671c0e989 wrongly written or mispronounced characters 10 年之前   Brightcells 5a0b6447ca change RotatingFileHandler to TimedRotatingFileHandler to support rotation of disk log files at certain timed intervals. 10 年之前   Brightcells cce055cdf4 change FileHandler to RotatingFileHandler to to supports rotation of disk log files. 10 年之前   Brightcells 51959f199b remove overflow: hidden; 10 年之前   Brightcells 88294e7647 change title of photo detail 10 年之前   Brightcells 4b7cfa2426 adjust photo detail page 10 年之前   Brightcells f679be700a adjust title of user_agreement 10 年之前   Brightcells a80a911457 change time.time() to int(time.time()) in upload_path 10 年之前   Brightcells 771845b52e add param pfrom for statistic_thumbnail_size 10 年之前   Brightcells 5c9e21b29b add Only Once Function statistic_thumbnail_size to statistic thumbnail size 10 年之前   Brightcells 0339d3dce4 Fix Bug: set_group_photo_data should after group_photo.save() 10 年之前   Brightcells bbc43c96ec add photo_share_url 10 年之前   Brightcells 398957153c add pk in user's nickname 10 年之前   Brightcells 85eb6c6f2d Fix Bug: nickname for GroupPhotoInfo error 10 年之前   Brightcells afcdf74a49 add api group_data_api 10 年之前   Brightcells e1b319d9a4 'charset': 'utf8mb4' 10 年之前   Brightcells a8d890cb70 filter order by pay_status 10 年之前   Brightcells 03304ad48a add api guest_status_api & modify api guest_login_api 10 年之前   Brightcells c209e83d29 add delete_guest_entrance_control 10 年之前   Brightcells 63eaee0951 modify guest_login_api 10 年之前   Brightcells 70689e758c add lensman and user's balance 10 年之前   Brightcells 269576f8b9 add guest user 10 年之前   Brightcells 818e5ae2cd adjust page 10 年之前   Brightcells 10fdf9ba1f adjust page 10 年之前   Brightcells 805b221885 add content for contact_us.html 10 年之前   Brightcells 60b2bc0c09 add content for user_agreement.html 10 年之前   Brightcells 95c1d32792 put isort and pep8 in check.sh 10 年之前   Brightcells fabef63211 set line_length=200 for isort 10 年之前   Brightcells 084a5eece8 order ruler: date/self/7*thumbup_num+3*comment_num/id 10 年之前   Brightcells 81e5a71d7f GroupUserInfo order by id desc in group_list_api 10 年之前   Brightcells f72ccb1875 isort import 10 年之前   Brightcells de60d59c26 order ruler: date/self/thumbup_num/id 10 年之前   Brightcells f684a1d89c order ruler: date/self/thumbup_num 10 年之前   Brightcells 5bf645c33d change order ruler for paiai home, user_id self upload first 10 年之前   Brightcells 414e2cb1b0 change some {number} to {} 10 年之前   Brightcells d1ef8ec9e9 download page 10 年之前   Brightcells ee258aeb8b GroupPhotoOrderInfo value set error 10 年之前   Brightcells b7a21719c7 change message_list_api to return unread message num 10 年之前   Brightcells bc49c77a94 adjust settings of redis 10 年之前   Brightcells 6f4b4a7f5c unify fee(return and params) to fen 10 年之前   Brightcells 102152ca4a add api lensman_photo_bought & modify api wx_order_create_api and adjust return field 10 年之前   Brightcells cb9a21132f modify lesman_photo_price api 10 年之前   Brightcells 8aeca53563 record unionid for wx_authorize user 10 年之前   Brightcells 50ebe3bfcd add company name in website 10 年之前   Brightcells efaa518b96 add Only Once Function refresh_thumbnail 10 年之前   Brightcells d0f8b5ce5c larger image file 403 forbidden 10 年之前   Brightcells d64b3c216b add and return photo_thumbnail2 relative 10 年之前   Brightcells a0dfcb6f16 Alter field pay_status on orderinfo 10 年之前   Brightcells 98f968c53c add api lesman_photo_price/wx_order_list_api/wx_order_detail_api 10 年之前   Brightcells 0f425ae151 add api wx_order_query_api 10 年之前   Brightcells 097426009e Fix Bug: sign error when trade_type == 'APP' 10 年之前   Brightcells 0e1b1fb160 adjust WECHAT in settings.py & use django-logit 10 年之前   Brightcells fab8ef6c5e add term of service page 10 年之前   Brightcells 03c3611ad0 improve image clarity 10 年之前   Brightcells 3114315824 add pc official website 10 年之前   Brightcells 5695243a9a Fix Bug: creator of group not in GROUP_USERS_PASSED_SET 10 年之前   Brightcells ed5ee99a08 Fix Bug: get_group_info wrong use as get_group_users_info 10 年之前   Brightcells 5301e7237e unify join group logic 10 年之前   Brightcells 02373a6dff return complete group_photo_info for api message_list_api/message_type_list_api 10 年之前   Brightcells aa78f33cca Fix Bug: group admin request group_join_api 10 年之前   Brightcells 349e60836f Fix Bug: set() takes at least 3 arguments (2 given) & change r.set to r.setex 10 年之前   Brightcells 15772543dd add return field thumbup for api flyimg_upload_api/flyimg_list_api/session_detail_api/pai2_home_api 10 年之前   Brightcells f0113f2b5c Fix Bug: get group_info/group_users when not created 10 年之前   Brightcells a53a8a8312 modify session_detail_api to deal with group/group_user/group_photo 10 年之前   Brightcells ec142555be return group_from for pai2_home_api 10 年之前   Brightcells 25a5b5e8ae reconstruct retrieve_redis_data 10 年之前   Brightcells dbea356558 add photo_from field for GroupPhotoInfo and return photo_from for some api 10 年之前   Brightcells a1bd97d641 change all param to cmp to string true 10 年之前   Brightcells 165424743a modify message relative apis 10 年之前   Brightcells 3586c96fbb Fix Bug: duplicate thumbup should not increase thumbup_num 10 年之前   Brightcells 017d878faa Fix Bug: duplicate thumbup should not increase thumbup_num 10 年之前   Brightcells b3b9639df8 add comment_num/thumbup_num in message_list_api/message_type_list_api 10 年之前   Brightcells 904fabf2d0 modify join policy in api group_join_api 10 年之前   Brightcells ff0a63215f Fix Bug: redis .replace(microsecond=0) 10 年之前   Brightcells 8493e9949f add pagination for group_list_api 10 年之前   Brightcells 537bd9bd41 add api group_quit_api 10 年之前   Brightcells 61590ecb17 Fix Bug: admin remove itself from a group 10 年之前   Brightcells ebaa78d5ad add api feedback_api 10 年之前   Brightcells c8d93d6339 add api message_delete_api/message_type_delete_api 10 年之前   Brightcells 8b7c49ddb9 add app to add page user_agreement/contact_us 10 年之前   Brightcells f5a460140f Fix Bug: get flag of whether user has thumbup or not error 10 年之前   Brightcells 454f8cd8ec change some info store in redis & remove some unnecessary params check & add some return for some api 10 年之前   Brightcells 78e4e238a7 GroupUserInfo.user_status == GroupUserInfo.DELETED & error status code 10 年之前   Brightcells 90515dc878 update comment_num and thumbup_num in api comment_submit_api/thumbup_submit_api/thumbup_cancel_api 10 年之前   Brightcells 1bc6cf2a73 add update group_avatar 10 年之前   Brightcells f7d159714f Fix Bug: PAI2_HOME_API error 10 年之前   Brightcells 17a826bc1b add status filter for GroupPhotoInfo query 10 年之前   Brightcells deeabd58a2 change 'nickname=nickname or user.final_nickname' in api flyimg_upload_api 10 年之前   Brightcells 5a05032918 modify order ruler to by DATE(created_at) desc 10 年之前   Brightcells 88049b12db store/return more field for photo 10 年之前   Brightcells ca727b0362 store/return w/h for photo 10 年之前   Brightcells f6a88c632b add group_default_avatar field for GroupInfo 10 年之前   Brightcells e50a206d29 add pagination for pai2_home_api 10 年之前   Brightcells da2a81fff1 add api pai2_home 10 年之前   Brightcells 7d85bed0b0 move errno_utils.py/response_utils.py into error file 10 年之前   Brightcells 11c6982627 return user_id for some api 10 年之前   Brightcells 0110c29272 rename api name 10 年之前   Brightcells 7a17d0fb90 add api wxpay & add redis relative 10 年之前   Brightcells 62aff0cb2f move status code into errno_utils.py to unified management 10 年之前   Brightcells a121b75ff2 add db_index=True for status field 10 年之前   Brightcells b5be31c6cd Fix Bug: Field name photo_path is not valid for model PhotosInfo 10 年之前   Brightcells 0786f22bad order_by('-pk') replace of order_by('-created_at') 10 年之前   Brightcells 62ef679981 add ret photo_url and photo_thumbnail_url 10 年之前   Brightcells d3088e1fec add ret msg_type_desc 10 年之前   Brightcells 464c31b794 support POST method for message relative api 10 年之前   Brightcells 8f83bd22be add param user_id for msg relative api 10 年之前   Brightcells 928a51477c 'UserMessageInfo' object has no attribute 'title' 10 年之前   Brightcells 8f14561134 UserMessageInfo in admin.py 10 年之前   Brightcells 89094aa77b if user exists, update user info, in api wx_authorize_api 10 年之前   Brightcells ba7bc03f03 adjust sex value 10 年之前   Brightcells 30daca135b add api message_list_api/message_type_list_api/message_read_api 10 年之前   Brightcells 03561aaa5f modify api comment_submit_api/comment_list_api 10 年之前   Brightcells c72d89f6e5 add api comment_submit_api/comment_list_api/thumbup_submit_api/thumbup_list_api/thumbup_cancel_api 10 年之前   Brightcells df1df69fe3 add api upgrade/splash 10 年之前   Brightcells 3253626936 change DOMAIN and IMG_DOMAIN to pai.ai 10 年之前   Brightcells e5721d434c add URL_CONFIG for domain pai.ai 10 年之前   Brightcells 2b831a139f CONN_MAX_AGE & cached.Loader 10 年之前   Brightcells 2fb52216da Fix Bug: wx authorize doesn't store wx_uid 10 年之前   Brightcells 48d2e93b70 return nickname for userinfo data 10 年之前   Brightcells 814ed79bfc add api group_unlock_api 10 年之前   Brightcells 1c25788dbf add group_name for group_create_api 10 年之前   Brightcells 8b5ea74192 add location /fly 10 年之前   Brightcells 4afdb94e20 add avatar for GroupUserInfo 10 年之前   Brightcells 5ef425fee7 add api wx_authorize_api 10 年之前   Brightcells d3798a39f1 update session_detail_api 10 年之前   Brightcells ce10db91f9 thumbnail_utils make_thumb 10 年之前   Brightcells f587f0a48f user can just see photo after he joined the group & zh_Hans replace zh_CN in settings.py 10 年之前   Brightcells 42df840f43 return current_id for api flyimg_upload/flyimg_list 10 年之前   Brightcells 9077a53317 return next_id for api flyimg_upload/flyimg_list 10 年之前   Brightcells f58bde298b add api flyimg_upload/flyimg_list 10 年之前   Brightcells 7fd74ed1e4 add group_join_api direct pass 10 年之前   Brightcells 7467a3e68a add api group_update/group_remove 10 年之前   Brightcells 7e305483ab add api group_detail/group_lock/group_pass/group_refuse 10 年之前   Brightcells e184e7dd5b add api group_create/group_join 10 年之前   Brightcells 6e77deb909 https://pypi.python.org/pypi/django-curtail-uuid 10 年之前   Brightcells e7d461ade5 upload photo with photo_id 10 年之前   Brightcells ca16dc830e alias .img.xfoto.com.cn/photo 10 年之前   Brightcells 7ddb9f0b5e change to use img.xfoto.com.cn as photo domain 10 年之前   Brightcells 3454610bb7 add api of user signup/login 10 年之前   Brightcells 00e8234de9 add api photo_standard_api 10 年之前   Brightcells e0ba30f506 add api session_detail_api 10 年之前   Brightcells 4a8b4f8819 add watermark 10 年之前   Brightcells b9c2997666 change server name .api.xfoto.com.cn before .xfoto.com.cn 11 年之前   Brightcells ca8b65a77e nginx conf & requirements 11 年之前   Brightcells 434468279f add api of lesman login & update other api 11 年之前   Brightcells 52ce35cbfc add api uuid_init/uuid 11 年之前   Brightcells 4defb80fdc gogs first init 11 年之前
共有 1 个文件被更改,包括 8 次插入 和 1 次删除
  1. 8 1
      member/models.py

+ 8 - 1
member/models.py

@@ -13,6 +13,7 @@ from TimeConvert import TimeConvert as tc
13 13
 from coupon.models import CouponInfo
14 14
 from kodo.basemodels import BrandInfoMixin
15 15
 from mch.models import ModelInfo
16
+from account.models import LensmanInfo
16 17
 from simditor.fields import RichTextField
17 18
 from utils.qiniucdn import qiniu_file_url
18 19
 
@@ -997,6 +998,12 @@ class MemberActivityContributionInfo(BaseModelMixin, BrandInfoMixin):
997 998
     def admindata(self):
998 999
         unlock_welfares = MemberActivityContributionWelfareUnlockingInfo.objects.filter(activity_id=self.activity_id, user_id=self.user_id)
999 1000
         unlock_welfares = [unlock_welfare.data for unlock_welfare in unlock_welfares]
1001
+        act = MemberActivityInfo.objects.get(activity_id=self.activity_id, status=True)
1002
+
1003
+        if act.activity_type == 4:
1004
+            user_name = LensmanInfo.objects.get(user_id=self.user_id, status=True).name
1005
+        else:
1006
+            user_name = self.user_name
1000 1007
         return {
1001 1008
             'contribution_id': self.contribution_id,
1002 1009
             'brand_id': self.brand_id,
@@ -1007,7 +1014,7 @@ class MemberActivityContributionInfo(BaseModelMixin, BrandInfoMixin):
1007 1014
             'content_type': self.content_type,
1008 1015
             'title': self.title,
1009 1016
             'content': self.content,
1010
-            'user_name': self.user_name,
1017
+            'user_name': user_name,
1011 1018
             'user_avatar': self.final_user_avatar,
1012 1019
             'images': self.final_images,
1013 1020
             'video_url': self.video_url or '',

kodo - Gogs: Go Git Service

Geen omschrijving

huangqimin001: e7da55aaf2 :art: Add complement_code 5 jaren geleden
..
migrations 96c4bec605 :art: Add api activity_group_share 5 jaren geleden
__init__.py df1df69fe3 add api upgrade/splash 10 jaren geleden
admin.py 018d52f61d Update package django_xxx 8 jaren geleden
models.py 597ee33ba6 Pai2 => Kodo 8 jaren geleden
tests.py fabef63211 set line_length=200 for isort 10 jaren geleden
views.py e7da55aaf2 :art: Add complement_code 5 jaren geleden