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