state修改
This commit is contained in:
parent
7491be1767
commit
884255e209
|
@ -94,8 +94,8 @@ class WechatEncryptSerializer(serializers.Serializer):
|
|||
data.pop('tousername')
|
||||
print(data)
|
||||
state = data.get('state')
|
||||
if state and state.startswith('mg') and '_' in state:
|
||||
data['corpid'] = corp.corpid
|
||||
if state and state.startswith('mg') and '_' in state:
|
||||
data['agentid'] = corp.agentid
|
||||
data['uid'] = corp.uid
|
||||
save_add_contact.delay(data, corp.to_dict(['corpid', 'appsecret']))
|
||||
|
@ -109,8 +109,8 @@ class WechatEncryptSerializer(serializers.Serializer):
|
|||
data.pop('tousername')
|
||||
print(data)
|
||||
state = data.get('state')
|
||||
if state and state.startswith('mg') and '_' in state:
|
||||
data['corpid'] = corp.corpid
|
||||
if state and state.startswith('mg') and '_' in state:
|
||||
data['agentid'] = corp.agentid
|
||||
data['uid'] = corp.uid
|
||||
edit_add_contact.delay(data, corp.to_dict(['corpid', 'appsecret']))
|
||||
|
@ -124,8 +124,8 @@ class WechatEncryptSerializer(serializers.Serializer):
|
|||
data.pop('tousername')
|
||||
print(data)
|
||||
state = data.get('state')
|
||||
if state and state.startswith('mg') and '_' in state:
|
||||
data['corpid'] = corp.corpid
|
||||
if state and state.startswith('mg') and '_' in state:
|
||||
data['agentid'] = corp.agentid
|
||||
data['uid'] = corp.uid
|
||||
save_add_contact.delay(data, corp.to_dict(['corpid', 'appsecret']))
|
||||
|
@ -139,8 +139,8 @@ class WechatEncryptSerializer(serializers.Serializer):
|
|||
data.pop('tousername')
|
||||
print(data)
|
||||
state = data.get('state')
|
||||
if state and state.startswith('mg') and '_' in state:
|
||||
data['corpid'] = corp.corpid
|
||||
if state and state.startswith('mg') and '_' in state:
|
||||
data['agentid'] = corp.agentid
|
||||
data['uid'] = corp.uid
|
||||
delete_add_contact.delay(data, corp.to_dict(['corpid', 'appsecret']))
|
||||
|
|
Loading…
Reference in New Issue