宠物笼智能连接
This commit is contained in:
parent
2118422cba
commit
16d4829ecf
|
|
@ -13169,7 +13169,7 @@
|
||||||
8876A5821BB83447007A4B54 = {
|
8876A5821BB83447007A4B54 = {
|
||||||
CreatedOnToolsVersion = 7.0;
|
CreatedOnToolsVersion = 7.0;
|
||||||
DevelopmentTeam = WFX8GD5HFX;
|
DevelopmentTeam = WFX8GD5HFX;
|
||||||
ProvisioningStyle = Automatic;
|
ProvisioningStyle = Manual;
|
||||||
SystemCapabilities = {
|
SystemCapabilities = {
|
||||||
com.apple.AccessWiFi = {
|
com.apple.AccessWiFi = {
|
||||||
enabled = 1;
|
enabled = 1;
|
||||||
|
|
|
||||||
|
|
@ -733,11 +733,11 @@ extern BOOL isfromCameraView;
|
||||||
|
|
||||||
if (self.deviceType==DEVICEPETS)
|
if (self.deviceType==DEVICEPETS)
|
||||||
{
|
{
|
||||||
url=[NSString stringWithFormat:@"%@%@",[NSString stringWithFormat:@"%@/api/user/bindPetDevice.do/",JIEKOUPORT],userId];
|
url=[NSString stringWithFormat:@"%@",[NSString stringWithFormat:@"%@/api/user/bindPetDevice.do",JIEKOUPORT]];
|
||||||
bind[@"token"]=token;
|
bind[@"token"]=token;
|
||||||
bind[@"timestamp"]=timestamp;
|
bind[@"timestamp"]=timestamp;
|
||||||
bind[@"storeName"]=[NSString stringWithFormat:@"宠物笼%lld",[[NSDate date] timeIntervalSince1970]];
|
bind[@"storeName"]=self.storeName.length?self.storeName:@"宠物店";
|
||||||
}
|
bind[@"userId"]=userId; }
|
||||||
|
|
||||||
[AFHttpTool requestWihtMethod:RequestMethodTypePost url:url params:bind success:^(id response) {
|
[AFHttpTool requestWihtMethod:RequestMethodTypePost url:url params:bind success:^(id response) {
|
||||||
NSDictionary*resultDic=[NSJSONSerialization JSONObjectWithData:response options:NSJSONReadingMutableContainers error:nil];
|
NSDictionary*resultDic=[NSJSONSerialization JSONObjectWithData:response options:NSJSONReadingMutableContainers error:nil];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue