Browse Source

修改 inhouse_primary_agent_id

zjl 2 years ago
parent
commit
cb52320d12

+ 1 - 1
configs/celery_beat.py

@@ -15,4 +15,4 @@ from .base import *
 MY_CELERY_ROUTING_KEY = 'default'
 MY_CELERY_QUEUE = 'default'
 
-MY_PRIMARY_AGENT_ID = '595b437aa7504b1dbc712d6e'
+MY_PRIMARY_AGENT_ID = '6417d4456f29257125ebf705'

+ 1 - 1
configs/local.py

@@ -5,7 +5,7 @@
 from .base import *
 DEBUG = True
 
-# DEFAULT_AGENT_ID = '595b437aa7504b1dbc712d6e'
+# DEFAULT_AGENT_ID = '6417d4456f29257125ebf705'
 
 MIDDLEWARE_CLASSES = (
     'django.middleware.gzip.GZipMiddleware',

+ 2 - 2
configs/production.py

@@ -17,8 +17,8 @@ MY_CELERY_QUEUE = 'production'
 
 TEST_OPEN_ID = 'on7D-0SCNKSk6B_3xqK6-WuZPL2s'
 
-MY_PRIMARY_AGENT_ID = '595b437aa7504b1dbc712d6e'
-# MY_PRIMARY_AGENT_WALLET_KEY = 'ledger-wechat-595b437aa7504b1dbc712d6e-1480791292'
+MY_PRIMARY_AGENT_ID = '6417d4456f29257125ebf705'
+# MY_PRIMARY_AGENT_WALLET_KEY = 'ledger-wechat-6417d4456f29257125ebf705-1480791292'
 
 CHECK_DEVICE_SMS_EXPIRE = True
 

+ 2 - 2
configs/production_local.py

@@ -17,8 +17,8 @@ MY_CELERY_QUEUE = 'production'
 
 TEST_OPEN_ID = 'on7D-0SCNKSk6B_3xqK6-WuZPL2s'
 
-MY_PRIMARY_AGENT_ID = '595b437aa7504b1dbc712d6e'
-# MY_PRIMARY_AGENT_WALLET_KEY = 'ledger-wechat-595b437aa7504b1dbc712d6e-1480791292'
+MY_PRIMARY_AGENT_ID = '6417d4456f29257125ebf705'
+# MY_PRIMARY_AGENT_WALLET_KEY = 'ledger-wechat-6417d4456f29257125ebf705-1480791292'
 
 CHECK_DEVICE_SMS_EXPIRE = True
 

+ 2 - 2
configs/production_ssl.py

@@ -17,8 +17,8 @@ MY_CELERY_QUEUE = 'production'
 
 TEST_OPEN_ID = 'on7D-0SCNKSk6B_3xqK6-WuZPL2s'
 
-MY_PRIMARY_AGENT_ID = '595b437aa7504b1dbc712d6e'
-# MY_PRIMARY_AGENT_WALLET_KEY = 'ledger-wechat-595b437aa7504b1dbc712d6e-1480791292'
+MY_PRIMARY_AGENT_ID = '6417d4456f29257125ebf705'
+# MY_PRIMARY_AGENT_WALLET_KEY = 'ledger-wechat-6417d4456f29257125ebf705-1480791292'
 
 CHECK_DEVICE_SMS_EXPIRE = True
 

+ 1 - 1
script/create_diy_menu_for_subscribe.py

@@ -16,7 +16,7 @@ else:
 from apps.web.core.models import WechatAuthApp
 from apps.web.core.bridge import WechatClientProxy
 
-agentId = '595b437aa7504b1dbc712d6e'
+agentId = '6417d4456f29257125ebf705'
 appId = 'wx9a5f5a3529bfc123'
 secret = '3814fbdd6f3b6cbbf1713a89a63ba40f'
 

+ 2 - 2
script/parse_income.py

@@ -25,7 +25,7 @@ execl_file = [
 
 # for i in ttt.index.values:
 #     gateway = ttt.ix[i, 1]
-#     if 'wechat-595b437aa7504b1dbc712d6e-wxea00d7496605a3be-1480791292-agent' in gateway:
+#     if 'wechat-6417d4456f29257125ebf705-wxea00d7496605a3be-1480791292-agent' in gateway:
 #         lines.append(ttt.ix[i, 0])
 
 # s_bool = ttt[u'商户订单号'] == u'支付'
@@ -76,7 +76,7 @@ filelist = get_file_list(u'E:\\微弗智通\\年底对账\\京东\\12')
 
 # for i in ttt.index.values:
 #     gateway = ttt.ix[i, 1]
-#     if 'wechat-595b437aa7504b1dbc712d6e-wxea00d7496605a3be-1480791292-agent' in gateway:
+#     if 'wechat-6417d4456f29257125ebf705-wxea00d7496605a3be-1480791292-agent' in gateway:
 #         lines.append(ttt.ix[i, 0])
 
 total = 0

+ 1 - 1
script/populate/agent.py

@@ -38,7 +38,7 @@ def simulate():
         random_source = random.choice([_.lower() for _ in dir(AGENT_INCOME_SOURCE) if not _.startswith('_')])
 
         test_payload = {
-            'agentId': '595b437aa7504b1dbc712d6e',
+            'agentId': '6417d4456f29257125ebf705',
             'date': random_date_time_str,
             'detail': detail_map[random_source],
             'amount' : random.choice([10.6, 5.5, 3]),

+ 1 - 1
script/shard_test/test.py

@@ -35,7 +35,7 @@ para = {
         "payOpenId" : "ojqSxwIlZTyVk0MzuBGBwf7tUwYw",
         "linkedRechargeRecordId" : ObjectId("5fcd000e6f29257970ba7513"),
         "orderNo" : "1607270419165316",
-        "agentId" : "595b437aa7504b1dbc712d6e"
+        "agentId" : "6417d4456f29257125ebf705"
     }
 
 obj = {

+ 1 - 1
script/shard_test/thread_test.py

@@ -35,7 +35,7 @@ para = {
         "payOpenId" : "ojqSxwIlZTyVk0MzuBGBwf7tUwYw",
         "linkedRechargeRecordId" : ObjectId("5fcd000e6f29257970ba7513"),
         "orderNo" : "1607270419165316",
-        "agentId" : "595b437aa7504b1dbc712d6e"
+        "agentId" : "6417d4456f29257125ebf705"
     }
 
 obj = {

+ 1 - 1
script/simCard/month_sim_charge.py

@@ -46,7 +46,7 @@ def print_month_stat(startTime,endTime,isPrintNoChargedDev=False):
             allAgentCost = allAgentCost + 2000*len(obj.items)
             continue
         for setInfo in obj.settleInfo['partition']:
-            if setInfo['id'] == '595b437aa7504b1dbc712d6e':
+            if setInfo['id'] == '6417d4456f29257125ebf705':
                 continue
             needReduce += setInfo['earned']
         allAgentCost = allAgentCost + (obj.totalFee - needReduce) 

+ 1 - 1
script/system_ledger.py

@@ -41,7 +41,7 @@ def _create_recharge():
     # ownerId = "5b4de0fc8732d60cb4c3ba0c"
     # -----------------------------
     """
-     {u'595b437aa7504b1dbc712d6e': <RMB 0.00> ,
+     {u'6417d4456f29257125ebf705': <RMB 0.00> ,
      u'61ba2ce000304845c2779797': <RMB 23.77> ,
      u'62b122af003048d043c68f54': <RMB 301.43> ,
      u'62b1c7886f29251b9886e8b0': <RMB 266.63> }

+ 1 - 1
script/transaction/calc_withdraw.py

@@ -18,4 +18,4 @@ from apps.web.common.models import WithdrawRecord
 if __name__ == '__main__':
     ownerId = sys.argv[1]
 
-    print WithdrawRecord.objects(ownerId = ownerId, payAgentId = '595b437aa7504b1dbc712d6e', status = 1).sum('amount')
+    print WithdrawRecord.objects(ownerId = ownerId, payAgentId = '6417d4456f29257125ebf705', status = 1).sum('amount')

+ 1 - 1
script/upgrade/executed/upgrade_Agent.20180813.py

@@ -23,7 +23,7 @@ for agent in Agent.objects.all():
     if not agent.is_primary:
         continue
 
-    my_agent = Agent.objects(id = str('595b437aa7504b1dbc712d6e')).get()
+    my_agent = Agent.objects(id = str('6417d4456f29257125ebf705')).get()
 
     import copy
 

+ 1 - 1
script/user_operation/adding_fans_for_gzh.py

@@ -14,7 +14,7 @@ from apps.web.dealer.models import Dealer
 
 blackList = ['13394586789 ','17758719757','17689963671','13799218960 ']
 
-dealers = Dealer.objects.filter(agentId = '595b437aa7504b1dbc712d6e',forceFollowGzh__ne = 'yes')
+dealers = Dealer.objects.filter(agentId = '6417d4456f29257125ebf705',forceFollowGzh__ne = 'yes')
 
 count = 0
 for dealer in dealers[0:20000]:

+ 1 - 1
script/utils/modify_platform_pay_type.py

@@ -44,7 +44,7 @@ with open('records.txt', 'w') as f:
             print 'agent<id={}> is not dealer gzh.'.format(str(agent.id))
 
         gateway = get_wechat_env_pay_gateway(agent, ROLE.myuser)  # type: WechatPaymentGateway
-        if gateway.occupantId == '595b437aa7504b1dbc712d6e' and '595b437aa7504b1dbc712d6e' != str(agent.id):
+        if gateway.occupantId == '6417d4456f29257125ebf705' and '6417d4456f29257125ebf705' != str(agent.id):
             print 'agent<id={}> use my zjc.'.format(str(agent.id))
             f.write('{}\r\n'.format(str(agent.id)))
 

+ 1 - 1
script/utils/upgrade_wechatminipay_app.py

@@ -31,7 +31,7 @@ def is_valid_string(str):
         return False
 
 
-agent = Agent.objects(id = '595b437aa7504b1dbc712d6e').first()  # type: Agent
+agent = Agent.objects(id = '6417d4456f29257125ebf705').first()  # type: Agent
 
 app = agent.wechatMiniApp  # type: WechatMiniApp
 if os.path.isfile(sslcert_path):