예제 #1
0
@1.队伍批量添加车辆
'''
import requests
from demo.xm005 import login


def add_car(token, car):
    path = 'https://gateway.xmzt.cn/talkback/group/teamAddOrUpdtOrDelDriver'
    data = {
        "groupId": "2705711532",
        "licencePlate": car,
        "token": token,
        "addOrUpdtOrDel": "1"
    }
    r = requests.get(url=path, params=data).json()
    return r


if __name__ == '__main__':
    phone = (a for a in range(13900000110, 13900000150))
    num = (a for a in range(1000, 1041))
    d = zip(num, phone)
    i = 0
    for a in d:
        i = i + 1
        aa = str(a[0])
        car = '川QQ' + aa
        phone = a[1]
        token = login(phone, 123456)
        print('第{}辆添加'.format(i), add_car(token, car))
예제 #2
0
'''
@1.群主移除成员
'''
import requests
from demo.xm005 import login, get_id


def qingli(token, uuid):
    path = 'https://gateway.xmzt.cn/talkback/group/removeMembers'
    data = {"token": token, "userIds": uuid, "tid": 2705330452}
    r = requests.get(url=path, params=data)
    print(r.json())


if __name__ == '__main__':
    token = login(13800000001, 123456)
    uuid = '187100'
    qingli(token, uuid)
예제 #3
0
'''
@1.扫码进群
'''
import requests
from demo.xm005 import login, get_id


def invite_group(token, uuid):
    path = 'https://gateway.xmzt.cn/tourapi/trip/invited/qr'
    data = {
        "client": "ios",
        "refCode": "ACF37H3B",
        "token": token,
        "groupId": "2702726632",
        "userId": uuid,
        "version": 1.0
    }
    r = requests.post(url=path, data=data).json()
    return r


if __name__ == '__main__':
    psd = 123456
    i = 0
    for phone in range(13900000300, 13900000400):
        i = i + 1
        token = login(phone, psd)
        print(token)
        uuid = get_id(token)
        print('{}第{}个进群:'.format(phone, i), invite_group(token, uuid))