#!/usr/bin/env python
import urllib
import sys
smsServer = ‘http://10.xx.xx.xx:8849'

#phones = ‘188012131xx;186181997xx’
phones = sys.argv[2]
phones = phones.replace(‘,’,’;’)
phones = phones.replace(‘ ‘,’’)

#contentS = ‘AiwalyAiwaly’
contentS = sys.argv[1]
params = ‘’’{“phone”:”%s”,”content”:”%s”,”type”:”94”}’’’ % (phones,contentS)
smsContent = urllib.urlencode({“param”:params})
url = “””%s/messenger/sendSms.do?%s””” % (smsServer,smsContent)
result = urllib.urlopen(url).read()
print result

文档更新时间: 2019-06-14 13:38   作者:月影鹏鹏