Browse Source

获取消费分账sourceKey的修改

zjl 2 years ago
parent
commit
731df45dab
1 changed files with 1 additions and 2 deletions
  1. 1 2
      apps/web/core/models.py

+ 1 - 2
apps/web/core/models.py

@@ -1642,12 +1642,11 @@ class LedgerConsumeApp(PayAppBase):
 
     @classmethod
     def get_app(cls, dealer):   # type:(Dealer) -> LedgerConsumeApp
-        agent = dealer.productAgent
 
         app = cls()
 
         app.role = ROLE.agent
-        app.occupantId = str(agent.id)
+        app.occupantId = settings.MY_PRIMARY_AGENT_ID
 
         app.enable = True
         app.valid = True