任务分解 #158
企业基本信息中的登记信息(完善企业信息)
0%
描述
一、表单
1、调用接口文件(PrefectedCompanyFormTest.php)
2、调用接口添加接口
$data = array("data"=>array("type"=>"prefectedCompanyForms",
"attributes"=>array( "name"=>"dwwwwqiyemingcheng11288",
"certificate"=>array('wwweeeeress11','address22','address33'),
"province"=>2,
"city"=>52,
"region"=>500,
"uid"=>1,
"principalRealName"=>"dd法人名字",
"principalIdentifyCardNumber"=>"xewwwexxxxxxxxx",
"principalIdentifyCardFrontPhoto"=>"11xxwwxxxxxxxx",
"principalIdentifyCardBackPhoto"=>"22xxxewwwexxxxxxx",
"principalIdentifyCardHandHeldPhoto"=>"33xxewwwexxxxxxxx",
"principalIdentifyCardValidity"=>"2019-11-11",
"contactPhone"=>"1234568911",
"category"=>1,
"registrationNumber"=>"xxwwwexxxxxxxx",
"unifiedSocialCreditCode"=>"ewweeeeeee",
"organizationCode"=>"xxxxeeeexxxxxx",
"registrationAuthority"=>"登ewwe记机关",
"approveDate"=>"2016-12-31",
"englishName"=>"xxxxxeeeexxxxx",
"registrationCapital"=>'20000',
"scale"=>1,
"establishedDate"=>"2016-12-31",
"industry"=>1,
"issuedDate"=>"2016-12-31",
"creditUrl"=>"xxxxwweexxxxxx",
"email"=>"xxxxxxxddxxx",
"postalCode"=>"710000",
"businessTermFrom"=>"2016-12-31",
"businessTermTo"=>"2016-12-31",
"businessScope"=>"xxxxxxxxxx",
"businessStatus"=>2,
"principalCategory"=>1,
"principalBirthday"=>"2010-10-10",
"principalBirthdayCategory"=>2,
"contactName"=>"nijinghello",
"contactDuties"=>"程序员",
"detailedAddress"=>"详细地址",
"businessPlace"=>"营业场所",
"residence"=>"住所",
"companyId"=>1,
"userIdentification"=>1
)
)
);
$response = $client->request(
'POST',
'prefectedCompanyForms',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);
//add end>request(
3、拒绝后编辑
/*$data = array("data"=>array("type"=>"prefectedCompanyForms",
"attributes"=>array( "name"=>"qqqqiyemingcheng11288",
"certificate"=>array('qqaddress11','aqqddress22','adqqdress33'),
"province"=>2,
"city"=>52,
"region"=>500,
"principalRealName"=>"法人qq名字",
"principalIdentifyCardNumber"=>"qqxxxxxxxxxx",
"principalIdentifyCardFrontPhoto"=>"1qq1xxxxxxxxxx",
"principalIdentifyCardBackPhoto"=>"2qq2xxxxxxxxxx",
"principalIdentifyCardHandHeldPhoto"=>"3qq3xxxxxxxxxx",
"principalIdentifyCardValidity"=>"2019-11-11",
"contactPhone"=>"1234568911",
"category"=>1,
"registrationNumber"=>"xxxqqxxxxxxx",
"unifiedSocialCreditCode"=>"xxqqxxxxxxxx",
"organizationCode"=>"xxxqqxxxxxxx",
"registrationAuthority"=>"登qq记机关",
"approveDate"=>"2016-12-31",
"englishName"=>"xxxxqqxxxxxx",
"registrationCapital"=>'220000',
"scale"=>1,
"establishedDate"=>"2016-12-31",
"industry"=>1,
"issuedDate"=>"2016-12-31",
"creditUrl"=>"xxxqqxxxxxxx",
"email"=>"xxxxxxqqxxxx",
"postalCode"=>"712000",
"businessTermFrom"=>"2016-12-31",
"businessTermTo"=>"2016-12-31",
"businessScope"=>"xxqqxxxxxxxx",
"businessStatus"=>2,
"principalCategory"=>1,
"principalBirthday"=>"2010-10-10",
"principalBirthdayCategory"=>2,
"contactName"=>"nijiqqnghello",
"contactDuties"=>"程qq序员",
"detailedAddress"=>"详qq细地址",
"businessPlace"=>"营业qq场所",
"residence"=>"住qq所"
)
)
);
$response = $client
'PUT',
'prefectedCompanyForms/49',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
//edit --end
二、获取信息
1‘获取单挑’$response = $client->request('GET', 'prefectedCompanyForms/1',['haders'=>['Content-' => 'application/vnd.api+json']]);
2、获取所有 $response = $client->request('GET', 'prefectedCompanyForms?filter[company]=1',['haders'=>['Content-' => 'application/vnd.api+json']]);
历史记录
由 匿名用户 更新于 将近 8 年 之前
一、表单
1、调用接口文件(PrefectedCompanyFormTest.php)
2、调用接口添加接口
$data = array("data"=>array("type"=>"prefectedCompanyForms",
"attributes"=>array( "name"=>"dwwwwqiyemingcheng11288",
"certificate"=>array('wwweeeeress11','address22','address33'),
"province"=>2,
"city"=>52,
"region"=>500,
"uid"=>1,
"principalRealName"=>"dd法人名字",
"principalIdentifyCardNumber"=>"xewwwexxxxxxxxx",
"principalIdentifyCardFrontPhoto"=>"11xxwwxxxxxxxx",
"principalIdentifyCardBackPhoto"=>"22xxxewwwexxxxxxx",
"principalIdentifyCardHandHeldPhoto"=>"33xxewwwexxxxxxxx",
"principalIdentifyCardValidity"=>"2019-11-11",
"contactPhone"=>"1234568911",
"category"=>1,
"registrationNumber"=>"xxwwwexxxxxxxx",
"unifiedSocialCreditCode"=>"ewweeeeeee",
"organizationCode"=>"xxxxeeeexxxxxx",
"registrationAuthority"=>"登ewwe记机关",
"approveDate"=>"2016-12-31",
"englishName"=>"xxxxxeeeexxxxx",
"registrationCapital"=>'20000',
"scale"=>1,
"establishedDate"=>"2016-12-31",
"industry"=>1,
"issuedDate"=>"2016-12-31",
"creditUrl"=>"xxxxwweexxxxxx",
"email"=>"xxxxxxxddxxx",
"postalCode"=>"710000",
"businessTermFrom"=>"2016-12-31",
"businessTermTo"=>"2016-12-31",
"businessScope"=>"xxxxxxxxxx",
"businessStatus"=>2,
"principalCategory"=>1,
"principalBirthday"=>"2010-10-10",
"principalBirthdayCategory"=>2,
"contactName"=>"nijinghello",
"contactDuties"=>"程序员",
"detailedAddress"=>"详细地址",
"businessPlace"=>"营业场所",
"residence"=>"住所",
"companyId"=>1,
"userIdentification"=>1
)
)
);
$response = $client->request(
'POST',
'prefectedCompanyForms',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);
//add end
3、拒绝后编辑
/*$data = array("data"=>array("type"=>"prefectedCompanyForms",
"attributes"=>array( "name"=>"qqqqiyemingcheng11288",
"certificate"=>array('qqaddress11','aqqddress22','adqqdress33'),
"province"=>2,
"city"=>52,
"region"=>500,
"principalRealName"=>"法人qq名字",
"principalIdentifyCardNumber"=>"qqxxxxxxxxxx",
"principalIdentifyCardFrontPhoto"=>"1qq1xxxxxxxxxx",
"principalIdentifyCardBackPhoto"=>"2qq2xxxxxxxxxx",
"principalIdentifyCardHandHeldPhoto"=>"3qq3xxxxxxxxxx",
"principalIdentifyCardValidity"=>"2019-11-11",
"contactPhone"=>"1234568911",
"category"=>1,
"registrationNumber"=>"xxxqqxxxxxxx",
"unifiedSocialCreditCode"=>"xxqqxxxxxxxx",
"organizationCode"=>"xxxqqxxxxxxx",
"registrationAuthority"=>"登qq记机关",
"approveDate"=>"2016-12-31",
"englishName"=>"xxxxqqxxxxxx",
"registrationCapital"=>'220000',
"scale"=>1,
"establishedDate"=>"2016-12-31",
"industry"=>1,
"issuedDate"=>"2016-12-31",
"creditUrl"=>"xxxqqxxxxxxx",
"email"=>"xxxxxxqqxxxx",
"postalCode"=>"712000",
"businessTermFrom"=>"2016-12-31",
"businessTermTo"=>"2016-12-31",
"businessScope"=>"xxqqxxxxxxxx",
"businessStatus"=>2,
"principalCategory"=>1,
"principalBirthday"=>"2010-10-10",
"principalBirthdayCategory"=>2,
"contactName"=>"nijiqqnghello",
"contactDuties"=>"程qq序员",
"detailedAddress"=>"详qq细地址",
"businessPlace"=>"营业qq场所",
"residence"=>"住qq所"
)
)
);
$response = $client->request(
'PUT',
'prefectedCompanyForms/49',
[
'haders'=>['Content-Type' => 'application/vnd.api+json'],
'json' => $data
]
);*/
//edit --end
二、获取信息
1‘获取单挑’$response = $client->request('GET', 'prefectedCompanyForms/1',['haders'=>['Content' => 'application/vnd.api+json']]);
2、获取所有 $response = $client->request('GET', 'prefectedCompanyForms',['haders'=>['Content' => 'application/vnd.api+json']]);