宠物店修改
This commit is contained in:
+7
-2
@@ -160,7 +160,12 @@
|
||||
[para setValue: cell.deviceName.text forKey:@"showName"];
|
||||
|
||||
if (cell.deviceName.text.length <= 6) {
|
||||
[mannager POST:kUpdateDeviceUser parameters:para success:^(AFHTTPRequestOperation *operation, id responseObject) {
|
||||
NSString*url=kUpdateDeviceUser;
|
||||
if ([self.device.type isEqualToString:DECICE_TYPE_XUANDUO3F])
|
||||
{
|
||||
url=[NSString stringWithFormat:@"%@/api/user/updatePetDeviceUser.do",JIEKOUPORT];
|
||||
}
|
||||
[mannager POST:url parameters:para success:^(AFHTTPRequestOperation *operation, id responseObject) {
|
||||
if (responseObject) {
|
||||
NSDictionary*resultDic=[NSJSONSerialization JSONObjectWithData:responseObject options:NSJSONReadingMutableContainers error:nil];
|
||||
NSLog(@"result:%@",resultDic[@"result"]);
|
||||
@@ -168,7 +173,7 @@
|
||||
if ([resultDic[@"result"] isEqualToString:@"100"]) {
|
||||
|
||||
[self.view makeToast:@"修改成功"];
|
||||
|
||||
[[NSNotificationCenter defaultCenter]postNotificationName:@"updateUserInfobyValidation" object:nil];
|
||||
NSString *strName =[NSString stringWithFormat:@"%@",cell.deviceName.text];
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user