def registerByPhoneThroughH5WithoutInviterCode(phone=None, password=None, inviter_code=None):
    """
    函数功能:通过手机号H5注册(不带邀请码)
    """
    try:
        jsonString = get_jsonstring_info.register_through_H5_without_inviterCode_jsonString %(repr(phone), repr(password))        
        data = dict(jsonString=jsonString)
        send_authcode.sendPhoneAuthcode(phone=phone, device=4)
        r = requests.post(get_url_info.register_url, data=data)
        if r.json()['code'] == 1:
            print("通过手机号H5注册(不带邀请码)成功," + r.json()['msg'])
        else:
            print(r.json()['msg'])
    except Exception as err:
        print(err)
def registerByPhoneThroughPC(phone=None, password=None):
    """
    函数功能:通过手机号PC注册
    """
    try:
        jsonString = get_jsonstring_info.register_through_PC_jsonString %(repr(phone), repr(password))        
        data = dict(jsonString=jsonString)
        send_authcode.sendPhoneAuthcode(phone=phone, device=1)
        r = requests.post(get_url_info.register_url, data=data)
        if r.json()['code'] == 1:
            print("通过手机号PC注册成功," + r.json()['msg'])
        else:
            print(r.json()['msg'])
    except Exception as err:
        print(err)