| @@ -121,7 +121,7 @@ func TestCrmReplaceEntity(t *testing.T) { | |||
| nb, _ := json.Marshal(e) | |||
| entity, err = crmReplaceEntity("Lead", id, nb) | |||
| AssertEqual(t, err, nil, "put should have no error") | |||
| AssertEqual(t, entity.(crmdLead).WechatHitxyID, "newid", "wechat_hitxy_id should be updated") | |||
| AssertEqual(t, entity.(crmdLead).WechatHitxyID, "newid", "wechatOpenID should be updated") | |||
| AssertEqual(t, entity.(crmdLead).Password, "newpass", "password should have been changed to newpass") | |||
| //delete | |||
| @@ -192,7 +192,7 @@ func TestSearchByAttr(t *testing.T) { | |||
| AssertEqual(t, result[0].ID, ids[i], "the id should be correct.") | |||
| log.Printf("trying to match %d using WechatId,%s", i, ids[i]) | |||
| total, list, err = crmFindEntityByAttr("Lead", "wechat_hitxy_id", fmt.Sprintf("someopenid-%d", i)) | |||
| total, list, err = crmFindEntityByAttr("Lead", "wechatOpenID", fmt.Sprintf("someopenid-%d", i)) | |||
| result = list.([]crmdLead) | |||
| AssertEqual(t, err, nil, "find by attr should have no error") | |||
| AssertEqual(t, total, 1, "should have found 1 and only 1") | |||
| @@ -34,7 +34,7 @@ type crmdLead struct { | |||
| //ModifiedAt string `json:"ModifiedAt,omitempty"` | |||
| AccountName string `json:"accountName,omitempty"` | |||
| Password string `json:"password,omitempty"` | |||
| WechatHitxyID string `json:"wechat_hitxy_id,omitempty"` | |||
| WechatHitxyID string `json:"wechatOpenID,omitempty"` | |||
| Verifier []string `json:"verifier,omitempty"` | |||
| OpportunityAmountCurrency string `json:"opportunityAmountCurrency,omitempty"` | |||
| OpportunityAmountConverted int `json:"opportunityAmountConverted,omitempty"` | |||
| @@ -70,7 +70,7 @@ type crmdSearchLead struct { | |||
| } | |||
| func crmFindLeadByOpenID(openID string) (info crmdLead, found bool, err error) { | |||
| total, list, err := crmFindEntityByAttr("Lead", "wechat_hitxy_id", openID) | |||
| total, list, err := crmFindEntityByAttr("Lead", "wechatOpenID", openID) | |||
| if err != nil { | |||
| return | |||
| } | |||
| @@ -83,7 +83,7 @@ func crmFindLeadByOpenID(openID string) (info crmdLead, found bool, err error) { | |||
| found = false | |||
| if total > 1 { | |||
| msg := fmt.Sprintf("wechat_hitxy_id %s has %d record", openID, total) | |||
| msg := fmt.Sprintf("wechatOpenID %s has %d record", openID, total) | |||
| log.Printf(msg) | |||
| } | |||
| return | |||
| @@ -33,7 +33,7 @@ func TestDecodeLeadInfo(t *testing.T) { | |||
| "modifiedAt": "2017-04-18 04:41:06", | |||
| "accountName": "", | |||
| "password": "abcdefg", | |||
| "wechat_hitxy_id": "the user id obtained from wechat public account", | |||
| "wechatOpenID": "the user id obtained from wechat public account", | |||
| "verifier": [ | |||
| "231823091", | |||
| "adkdaifaskfsafsa", | |||
| @@ -131,7 +131,7 @@ func TestCrmdLeadByCompleteInfo(t *testing.T) { | |||
| "modifiedAt": "2017-06-04 04:08:16", | |||
| "accountName": "", | |||
| "password": "abcdefg", | |||
| "wechat_hitxy_id": "the user id obtained from wechat public account", | |||
| "wechatOpenID": "the user id obtained from wechat public account", | |||
| "verifier": [ | |||
| "231823091", | |||
| "adkdaifaskfsafsa", | |||
| @@ -308,7 +308,7 @@ func TestSearchResult(t *testing.T) { | |||
| "modifiedAt": "2017-06-04 06:57:48", | |||
| "accountName": "", | |||
| "password": "abcdefg", | |||
| "wechat_hitxy_id": "the user id obtained from wechat public account", | |||
| "wechatOpenID": "the user id obtained from wechat public account", | |||
| "verifier": [ | |||
| "231823091", | |||
| "adkdaifaskfsafsa", | |||
| @@ -354,7 +354,7 @@ func TestSearchResult(t *testing.T) { | |||
| "modifiedAt": "2017-04-18 05:09:36", | |||
| "accountName": "", | |||
| "password": null, | |||
| "wechat_hitxy_id": "the user id obtained from wechat public account", | |||
| "wechatOpenID": "the user id obtained from wechat public account", | |||
| "verifier": [], | |||
| "opportunityAmountCurrency": null, | |||
| "opportunityAmountConverted": null, | |||
| @@ -405,7 +405,7 @@ func TestGetLead(t *testing.T) { | |||
| AssertEqual(t, lead.FirstName, e.FirstName, "first name should match") | |||
| AssertEqual(t, lead.LastName, e.LastName, "lastname should match") | |||
| AssertEqual(t, lead.WechatHitxyID, e.WechatHitxyID, "wechat_hitxy_id should match") | |||
| AssertEqual(t, lead.WechatHitxyID, e.WechatHitxyID, "wechatOpenID should match") | |||
| AssertEqual(t, lead.Password, e.Password, "password should match") | |||
| //start query | |||
| @@ -77,7 +77,7 @@ func TestRegisterNewUser(t *testing.T) { | |||
| json.Unmarshal([]byte(msg), &s) | |||
| newuser, err := s.registerNewLeadWithInfo(in) | |||
| AssertEqual(t, err, nil, "should be successfully added new user") | |||
| AssertEqual(t, newuser.WechatHitxyID, in.header.FromUserName, "wechat_hitxy_id mismatch") | |||
| AssertEqual(t, newuser.WechatHitxyID, in.header.FromUserName, "wechatOpenID mismatch") | |||
| log.Printf("created temp Lead %s ", newuser.ID) | |||
| deleted, err := crmDeleteEntity("Lead", newuser.ID) | |||
| @@ -24,7 +24,7 @@ | |||
| "modifiedAt": "2017-06-04 04:08:16", | |||
| "accountName": "", | |||
| "password": "abcdefg", | |||
| "wechat_hitxy_id": "the user id obtained from wechat public account", | |||
| "wechatOpenID": "the user id obtained from wechat public account", | |||
| "verifier": [ | |||
| "231823091", | |||
| "adkdaifaskfsafsa", | |||
| @@ -1515,7 +1515,7 @@ | |||
| "postData": { | |||
| "mimeType": "application/json", | |||
| "params": [], | |||
| "text": "{\"firstName\":\"name\",\"lastName\":\"last\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"assignedUserId\":\"58ef420cac3cf6c95\",\"assignedUserName\":\"wechat robot\",\"imagesIds\":[],\"imagesNames\":{},\"imagesTypes\":{},\"salutationName\":\"\",\"wechat_hitxy_id\":\"weid\",\"password\":\"123\",\"accountName\":\"\",\"emailAddressData\":[],\"emailAddress\":null,\"phoneNumberData\":[],\"phoneNumber\":null,\"title\":\"\",\"doNotCall\":false,\"addressPostalCode\":\"\",\"addressStreet\":\"\",\"addressState\":\"\",\"addressCity\":\"\",\"addressCountry\":\"\",\"website\":\"\",\"verifier\":[],\"opportunityAmount\":null,\"opportunityAmountCurrency\":null,\"campaignName\":null,\"campaignId\":null,\"description\":\"\",\"teamsIds\":[],\"teamsNames\":{}}" | |||
| "text": "{\"firstName\":\"name\",\"lastName\":\"last\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"assignedUserId\":\"58ef420cac3cf6c95\",\"assignedUserName\":\"wechat robot\",\"imagesIds\":[],\"imagesNames\":{},\"imagesTypes\":{},\"salutationName\":\"\",\"wechatOpenID\":\"weid\",\"password\":\"123\",\"accountName\":\"\",\"emailAddressData\":[],\"emailAddress\":null,\"phoneNumberData\":[],\"phoneNumber\":null,\"title\":\"\",\"doNotCall\":false,\"addressPostalCode\":\"\",\"addressStreet\":\"\",\"addressState\":\"\",\"addressCity\":\"\",\"addressCountry\":\"\",\"website\":\"\",\"verifier\":[],\"opportunityAmount\":null,\"opportunityAmountCurrency\":null,\"campaignName\":null,\"campaignId\":null,\"description\":\"\",\"teamsIds\":[],\"teamsNames\":{}}" | |||
| }, | |||
| "headersSize": 670 | |||
| }, | |||
| @@ -1581,7 +1581,7 @@ | |||
| "content": { | |||
| "mimeType": "application/json", | |||
| "size": 837, | |||
| "text": "{\"id\":\"5931a78193909a205\",\"name\":\"name last\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"name\",\"lastName\":\"last\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":null,\"phoneNumber\":null,\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-06-02 17:59:29\",\"modifiedAt\":\"2017-06-02 17:59:29\",\"accountName\":\"\",\"password\":\"123\",\"wechat_hitxy_id\":\"weid\",\"verifier\":[],\"opportunityAmountCurrency\":null,\"emailAddressData\":[],\"phoneNumberData\":[],\"createdById\":\"58ef420cac3cf6c95\",\"assignedUserId\":\"58ef420cac3cf6c95\",\"assignedUserName\":\"wechat robot\",\"teamsIds\":[],\"teamsNames\":{},\"campaignId\":null,\"campaignName\":null,\"imagesIds\":[],\"imagesNames\":{},\"isFollowed\":true,\"imagesTypes\":{}}" | |||
| "text": "{\"id\":\"5931a78193909a205\",\"name\":\"name last\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"name\",\"lastName\":\"last\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":null,\"phoneNumber\":null,\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-06-02 17:59:29\",\"modifiedAt\":\"2017-06-02 17:59:29\",\"accountName\":\"\",\"password\":\"123\",\"wechatOpenID\":\"weid\",\"verifier\":[],\"opportunityAmountCurrency\":null,\"emailAddressData\":[],\"phoneNumberData\":[],\"createdById\":\"58ef420cac3cf6c95\",\"assignedUserId\":\"58ef420cac3cf6c95\",\"assignedUserName\":\"wechat robot\",\"teamsIds\":[],\"teamsNames\":{},\"campaignId\":null,\"campaignName\":null,\"imagesIds\":[],\"imagesNames\":{},\"isFollowed\":true,\"imagesTypes\":{}}" | |||
| }, | |||
| "redirectURL": "", | |||
| "headersSize": 503, | |||
| @@ -1725,7 +1725,7 @@ | |||
| "content": { | |||
| "mimeType": "application/json", | |||
| "size": 1193, | |||
| "text": "{\"id\":\"5931a78193909a205\",\"name\":\"name last\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"name\",\"lastName\":\"last\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":null,\"phoneNumber\":null,\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-06-02 17:59:29\",\"modifiedAt\":\"2017-06-02 17:59:29\",\"accountName\":\"\",\"password\":\"123\",\"wechat_hitxy_id\":\"weid\",\"verifier\":[],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"emailAddressData\":[],\"phoneNumberData\":[],\"createdById\":\"58ef420cac3cf6c95\",\"createdByName\":\"wechat robot\",\"modifiedById\":null,\"modifiedByName\":null,\"assignedUserId\":\"58ef420cac3cf6c95\",\"assignedUserName\":\"wechat robot\",\"teamsIds\":[],\"teamsNames\":{},\"campaignId\":null,\"campaignName\":null,\"createdAccountId\":null,\"createdAccountName\":null,\"createdContactId\":null,\"createdContactName\":null,\"createdOpportunityId\":null,\"createdOpportunityName\":null,\"imagesIds\":[],\"imagesNames\":{},\"isFollowed\":true,\"followersIds\":[\"58ef420cac3cf6c95\"],\"followersNames\":{\"58ef420cac3cf6c95\":\"wechat robot\"},\"imagesTypes\":{}}" | |||
| "text": "{\"id\":\"5931a78193909a205\",\"name\":\"name last\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"name\",\"lastName\":\"last\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":null,\"phoneNumber\":null,\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-06-02 17:59:29\",\"modifiedAt\":\"2017-06-02 17:59:29\",\"accountName\":\"\",\"password\":\"123\",\"wechatOpenID\":\"weid\",\"verifier\":[],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"emailAddressData\":[],\"phoneNumberData\":[],\"createdById\":\"58ef420cac3cf6c95\",\"createdByName\":\"wechat robot\",\"modifiedById\":null,\"modifiedByName\":null,\"assignedUserId\":\"58ef420cac3cf6c95\",\"assignedUserName\":\"wechat robot\",\"teamsIds\":[],\"teamsNames\":{},\"campaignId\":null,\"campaignName\":null,\"createdAccountId\":null,\"createdAccountName\":null,\"createdContactId\":null,\"createdContactName\":null,\"createdOpportunityId\":null,\"createdOpportunityName\":null,\"imagesIds\":[],\"imagesNames\":{},\"isFollowed\":true,\"followersIds\":[\"58ef420cac3cf6c95\"],\"followersNames\":{\"58ef420cac3cf6c95\":\"wechat robot\"},\"imagesTypes\":{}}" | |||
| }, | |||
| "redirectURL": "", | |||
| "headersSize": 504, | |||
| @@ -445,7 +445,7 @@ | |||
| "content": { | |||
| "mimeType": "application/json", | |||
| "size": 984, | |||
| "text": "{\"total\":1,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-04-18 04:41:06\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechat_hitxy_id\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}" | |||
| "text": "{\"total\":1,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-04-18 04:41:06\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechatOpenID\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}" | |||
| }, | |||
| "redirectURL": "", | |||
| "headersSize": 503, | |||
| @@ -297,7 +297,7 @@ | |||
| "content": { | |||
| "mimeType": "application/json", | |||
| "size": 984, | |||
| "text": "{\"total\":1,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-04-18 04:41:06\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechat_hitxy_id\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}" | |||
| "text": "{\"total\":1,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-04-18 04:41:06\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechatOpenID\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}" | |||
| }, | |||
| "redirectURL": "", | |||
| "headersSize": 504, | |||
| @@ -614,7 +614,7 @@ | |||
| "content": { | |||
| "mimeType": "application/json", | |||
| "size": 984, | |||
| "text": "{\"total\":1,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-04-18 04:41:06\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechat_hitxy_id\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}" | |||
| "text": "{\"total\":1,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-04-18 04:41:06\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechatOpenID\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}" | |||
| }, | |||
| "redirectURL": "", | |||
| "headersSize": 503, | |||
| @@ -787,7 +787,7 @@ | |||
| "content": { | |||
| "mimeType": "application/json", | |||
| "size": 984, | |||
| "text": "{\"total\":1,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-04-18 04:41:06\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechat_hitxy_id\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}" | |||
| "text": "{\"total\":1,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-04-18 04:41:06\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechatOpenID\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}" | |||
| }, | |||
| "redirectURL": "", | |||
| "headersSize": 503, | |||
| @@ -960,7 +960,7 @@ | |||
| "content": { | |||
| "mimeType": "application/json", | |||
| "size": 984, | |||
| "text": "{\"total\":1,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-04-18 04:41:06\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechat_hitxy_id\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}" | |||
| "text": "{\"total\":1,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-04-18 04:41:06\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechatOpenID\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}" | |||
| }, | |||
| "redirectURL": "", | |||
| "headersSize": 503, | |||
| @@ -177,7 +177,7 @@ | |||
| "time": 80.47500002430752, | |||
| "request": { | |||
| "method": "GET", | |||
| "url": "https://c.hitxy.org.au/api/v1/Lead?maxSize=20&offset=0&sortBy=createdAt&asc=false&where%5B0%5D%5Btype%5D=startsWith&where%5B0%5D%5Battribute%5D=wechat_hitxy_id&where%5B0%5D%5Bvalue%5D=the", | |||
| "url": "https://c.hitxy.org.au/api/v1/Lead?maxSize=20&offset=0&sortBy=createdAt&asc=false&where%5B0%5D%5Btype%5D=startsWith&where%5B0%5D%5Battribute%5D=wechatOpenID&where%5B0%5D%5Bvalue%5D=the", | |||
| "httpVersion": "HTTP/1.1", | |||
| "headers": [ | |||
| { | |||
| @@ -248,7 +248,7 @@ | |||
| }, | |||
| { | |||
| "name": "where%5B0%5D%5Battribute%5D", | |||
| "value": "wechat_hitxy_id" | |||
| "value": "wechatOpenID" | |||
| }, | |||
| { | |||
| "name": "where%5B0%5D%5Bvalue%5D", | |||
| @@ -346,7 +346,7 @@ | |||
| "size": 1855, | |||
| "mimeType": "application/json", | |||
| "compression": 0, | |||
| "text": "{\"total\":2,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":120,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-06-04 04:08:16\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechat_hitxy_id\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":\"AUD\",\"opportunityAmountConverted\":120,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"1\",\"modifiedByName\":\"Admin\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null},{\"id\":\"58f4a849502da6f33\",\"name\":\"not searchable\",\"deleted\":false,\"salutationName\":\"Mr.\",\"firstName\":\"not\",\"lastName\":\"searchable\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":null,\"phoneNumber\":null,\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:34:33\",\"modifiedAt\":\"2017-04-18 05:09:36\",\"accountName\":\"\",\"password\":null,\"wechat_hitxy_id\":\"the user id obtained from wechat public account\",\"verifier\":[],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}" | |||
| "text": "{\"total\":2,\"list\":[{\"id\":\"58f4aa0682ea74bb8\",\"name\":\"same email\",\"deleted\":false,\"salutationName\":\"\",\"firstName\":\"same\",\"lastName\":\"email\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":120,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":\"test@gmail.com\",\"phoneNumber\":\"456\",\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:41:58\",\"modifiedAt\":\"2017-06-04 04:08:16\",\"accountName\":\"\",\"password\":\"abcdefg\",\"wechatOpenID\":\"the user id obtained from wechat public account\",\"verifier\":[\"231823091\",\"adkdaifaskfsafsa\",\"394kfdjafdsa\",\"39410498321041\"],\"opportunityAmountCurrency\":\"AUD\",\"opportunityAmountConverted\":120,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"1\",\"modifiedByName\":\"Admin\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null},{\"id\":\"58f4a849502da6f33\",\"name\":\"not searchable\",\"deleted\":false,\"salutationName\":\"Mr.\",\"firstName\":\"not\",\"lastName\":\"searchable\",\"title\":\"\",\"status\":\"New\",\"source\":\"\",\"industry\":\"\",\"opportunityAmount\":null,\"website\":\"\",\"addressStreet\":\"\",\"addressCity\":\"\",\"addressState\":\"\",\"addressCountry\":\"\",\"addressPostalCode\":\"\",\"emailAddress\":null,\"phoneNumber\":null,\"doNotCall\":false,\"description\":\"\",\"createdAt\":\"2017-04-17 11:34:33\",\"modifiedAt\":\"2017-04-18 05:09:36\",\"accountName\":\"\",\"password\":null,\"wechatOpenID\":\"the user id obtained from wechat public account\",\"verifier\":[],\"opportunityAmountCurrency\":null,\"opportunityAmountConverted\":null,\"createdById\":\"1\",\"createdByName\":\"Admin\",\"modifiedById\":\"58ef420cac3cf6c95\",\"modifiedByName\":\"wechat robot\",\"assignedUserId\":\"1\",\"assignedUserName\":\"Admin\",\"campaignId\":null,\"createdAccountId\":null,\"createdContactId\":null,\"createdOpportunityId\":null}]}" | |||
| }, | |||
| "redirectURL": "", | |||
| "headersSize": 504, | |||
| @@ -27,7 +27,7 @@ | |||
| "modifiedAt": "2017-06-29 03:35:33", | |||
| "accountName": null, | |||
| "password": "pp", | |||
| "wechat_hitxy_id": "someopenid", | |||
| "wechatOpenID": "someopenid", | |||
| "verifier": null, | |||
| "opportunityAmountCurrency": null, | |||
| "opportunityAmountConverted": null, | |||
| @@ -27,7 +27,7 @@ | |||
| "modifiedAt": "2017-04-18 04:41:06", | |||
| "accountName": "", | |||
| "password": "abcdefg", | |||
| "wechat_hitxy_id": "the user id obtained from wechat public account", | |||
| "wechatOpenID": "the user id obtained from wechat public account", | |||
| "verifier": [ | |||
| "231823091", | |||
| "adkdaifaskfsafsa", | |||
| @@ -82,7 +82,7 @@ | |||
| "modifiedAt": "2017-06-30 03:16:53", | |||
| "accountName": null, | |||
| "password": "pp", | |||
| "wechat_hitxy_id": "someopenid", | |||
| "wechatOpenID": "someopenid", | |||
| "verifier": null, | |||
| "opportunityAmountCurrency": null, | |||
| "opportunityAmountConverted": null, | |||
| @@ -123,7 +123,7 @@ | |||
| "modifiedAt": "2017-06-30 03:11:45", | |||
| "accountName": null, | |||
| "password": "pp", | |||
| "wechat_hitxy_id": "someopenid", | |||
| "wechatOpenID": "someopenid", | |||
| "verifier": null, | |||
| "opportunityAmountCurrency": null, | |||
| "opportunityAmountConverted": null, | |||
| @@ -164,7 +164,7 @@ | |||
| "modifiedAt": "2017-06-28 11:38:20", | |||
| "accountName": null, | |||
| "password": "password", | |||
| "wechat_hitxy_id": "oUN420Wj78vnkNeAJY7RMPXA28oc", | |||
| "wechatOpenID": "oUN420Wj78vnkNeAJY7RMPXA28oc", | |||
| "verifier": null, | |||
| "opportunityAmountCurrency": null, | |||
| "opportunityAmountConverted": null, | |||
| @@ -205,7 +205,7 @@ | |||
| "modifiedAt": "2017-06-26 02:32:11", | |||
| "accountName": "", | |||
| "password": "dir", | |||
| "wechat_hitxy_id": "dir", | |||
| "wechatOpenID": "dir", | |||
| "verifier": [], | |||
| "opportunityAmountCurrency": null, | |||
| "opportunityAmountConverted": null, | |||
| @@ -246,7 +246,7 @@ | |||
| "modifiedAt": "2017-06-26 02:32:11", | |||
| "accountName": "", | |||
| "password": "123", | |||
| "wechat_hitxy_id": "weid", | |||
| "wechatOpenID": "weid", | |||
| "verifier": [], | |||
| "opportunityAmountCurrency": null, | |||
| "opportunityAmountConverted": null, | |||
| @@ -287,7 +287,7 @@ | |||
| "modifiedAt": "2017-06-26 02:32:11", | |||
| "accountName": "", | |||
| "password": "abcdefg", | |||
| "wechat_hitxy_id": "the user id obtained from wechat public account", | |||
| "wechatOpenID": "the user id obtained from wechat public account", | |||
| "verifier": [ | |||
| "231823091", | |||
| "adkdaifaskfsafsa", | |||
| @@ -333,7 +333,7 @@ | |||
| "modifiedAt": "2017-06-26 02:32:11", | |||
| "accountName": "", | |||
| "password": null, | |||
| "wechat_hitxy_id": "the user id obtained from wechat public account", | |||
| "wechatOpenID": "the user id obtained from wechat public account", | |||
| "verifier": [], | |||
| "opportunityAmountCurrency": null, | |||
| "opportunityAmountConverted": null, | |||
| @@ -374,7 +374,7 @@ | |||
| "modifiedAt": "2017-06-26 02:32:11", | |||
| "accountName": "", | |||
| "password": null, | |||
| "wechat_hitxy_id": "abce667598", | |||
| "wechatOpenID": "abce667598", | |||
| "verifier": null, | |||
| "opportunityAmountCurrency": null, | |||
| "opportunityAmountConverted": null, | |||