|
@@ -11,7 +11,7 @@ import json
|
|
|
|
|
|
import requests
|
|
|
from Crypto.Cipher import AES
|
|
|
-from pysmx.SM3 import Hash_sm3
|
|
|
+from pysmx.SM3 import hash_msg
|
|
|
from decimal import Decimal
|
|
|
from Ansjer.config import unicomAppUrl, unicomAppId, unicomAppSecret, unicomTenantId, \
|
|
|
unicomEncodeKey, unicomIvKey, unicomUserName, unicomPassword, unicomPushKey
|
|
@@ -68,7 +68,7 @@ class UnicomObjeect:
|
|
|
val = '&'.join(data_list)
|
|
|
push_key = '&key={}'.format(self.pushKey)
|
|
|
val = val + push_key
|
|
|
- return Hash_sm3(val).upper()
|
|
|
+ return hash_msg(val).upper()
|
|
|
|
|
|
def get_login_authorization(self):
|
|
|
"""
|