修复超级签已知问题

pull/6/head
nineven 4 years ago
parent 308faf76b6
commit a3bc31a0f9
  1. 1
      fir_client/src/components/FirSuperSignBase.vue
  2. 9
      fir_ser/api/utils/app/supersignutils.py
  3. 2
      fir_ser/api/views/receiveudids.py
  4. 31
      fir_ser/tests/postudid.py

@ -537,7 +537,6 @@
this.authemail = developer.email;
} else if (developer.issuer_id) {
this.iosdeveloperFun({"methods": "PUT", "data": {"issuer_id": developer.issuer_id, "act": act}});
this.codeactiveVisible = true;
}
// this.inputcode(developer)

@ -262,7 +262,11 @@ class IosUtils(object):
return provisionName + '.mobileprovision'
def resign(self):
if AppUDID.objects.filter(app_id=self.app_obj, udid=self.udid_info.get('udid')).first().is_signed:
if not self.developer_obj:
logger.error("udid %s app %s not exists apple developer" % (self.udid_info.get('udid'), self.app_obj))
return
app_udid_obj = AppUDID.objects.filter(app_id=self.app_obj, udid=self.udid_info.get('udid')).first()
if app_udid_obj and app_udid_obj.is_signed:
apptodev_obj = APPToDeveloper.objects.filter(app_id=self.app_obj).first()
if apptodev_obj:
release_obj = AppReleaseInfo.objects.filter(app_id=self.app_obj, is_master=True).first()
@ -302,6 +306,9 @@ class IosUtils(object):
self.resign()
return
AppUDID.objects.update_or_create(app_id=self.app_obj, udid=self.udid_info.get('udid'),
defaults=self.udid_info)
file_format_path_name = file_format_path(self.user_obj, self.auth)
my_local_key = file_format_path_name + ".key"
app_dev_pem = file_format_path_name + ".pem"

@ -25,8 +25,6 @@ class IosUDIDView(View):
if app_info:
if app_info.issupersign and app_info.user_id.supersign_active:
AppUDID.objects.update_or_create(app_id=app_info, udid=format_udid_info.get('udid'),
defaults=format_udid_info)
ios_obj = IosUtils(format_udid_info, app_info.user_id, app_info)
ios_obj.resign()
else:

@ -4,7 +4,7 @@ import random
short = ["bgql", "wjbu", "vnfg", "bgql"]
udid_lists = [
"f55df38afe5c1242b8bc478d0182bbd0d7d08929",
"f55df38afe5c1242b8bc478d0182bbd0d7d08929aeasadfsdf",
"f55df38afe5c1242b8bc478d0182bbd0d7d08929",
"f55df38afe5c1242b8bc478d0182bbd0d7d08922",
"f55df38afe5c1242b8bc478d0182bbd0d7d01129",
@ -34,16 +34,25 @@ udid_lists = [
"f55df38afe5c1242b8bc478d0182bbd0d7dsfe08929",
]
shorts='pzsdaaa'
for udid in udid_lists:
data = '<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n<dict>\n\t<key>PRODUCT</key>\n\t<string>iPhone9,1</string>\n\t<key>SERIAL</key>\n\t<string>F71YD58GHG74</string>\n\t<key>UDID</key>\n\t<string>%s</string>\n\t<key>VERSION</key>\n\t<string>17E262</string>\n</dict>\n</plist>\n' % (
udid)
# uri = "https://app.hehelucky.cn/udid/%s" % (random.choice(short))
uri = "https://app.hehelucky.cn/udid/%s" % (shorts)
req = requests.post(uri, data=data)
print(req.status_code)
print(req.text)
exit(1)
def postaaa(shorts='bncz'):
for udid in udid_lists:
udid=udid+str(random.choice(short))+str(random.choice(short))+str(random.choice(short))
data = '<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">\n<plist version="1.0">\n<dict>\n\t<key>PRODUCT</key>\n\t<string>iPhone9,1</string>\n\t<key>SERIAL</key>\n\t<string>F71YD58GHG74</string>\n\t<key>UDID</key>\n\t<string>%s</string>\n\t<key>VERSION</key>\n\t<string>17E262</string>\n</dict>\n</plist>\n' % (
udid)
# uri = "https://app.hehelucky.cn/udid/%s" % (random.choice(short))
uri = "https://app.hehelucky.cn/udid/%s" % (shorts)
req = requests.post(uri, data=data)
print(req.headers)
print(req.status_code)
print(req.text)
# exit(1)
# a = '验证码%(code)s,您正在注册成为新用户,感谢您的支持!'
# print(a % {'code': 111})
pa=10
while pa> 0:
postaaa()
pa=pa-1
postaaa()
Loading…
Cancel
Save