更新苹果api接口

qrnn
MMXX 3 years ago
parent 5dd1dd0681
commit 09257733f8
  1. 6
      fir_ser/api/utils/apple/appleapiv3.py

@ -6,7 +6,6 @@
# pip install pyjwt # pip install pyjwt
import base64 import base64
import datetime
import logging import logging
import os import os
import time import time
@ -760,8 +759,9 @@ class AppStoreConnectApi(DevicesAPI, BundleIDsAPI, BundleIDsCapabilityAPI, Profi
def __make_jwt_headers(self): def __make_jwt_headers(self):
data = { data = {
"iss": self.issuer_id, "iss": self.issuer_id,
"exp": datetime.datetime.utcnow() + datetime.timedelta(seconds=self.exp_seconds), "iat": int(time.time()),
"aud": self.JWT_AUD "exp": int(time.time())+self.exp_seconds,
"aud": self.JWT_AUD,
} }
jwt_headers = { jwt_headers = {
"alg": self.JWT_ALG, "alg": self.JWT_ALG,

Loading…
Cancel
Save