You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

99 lines
3.0 KiB

<?php
namespace ali\apigateway\api\szaikeruite;
use ali\apigateway\api\Base;
class Enterprise extends Base
{
/**
* 企业三要素核验验证
* @param string $enterpris_name 企业名称_中文
* @param string $enterpris_id 企业统一社会信用代码 或 企业注册号
* @param string $enterpris_owner 企业法人名称
* @date 2022-04-01
*/
public function enterpriseValidate($enterpris_name, $enterpris_id, $enterpris_owner)
{
//设置域名
$this->setHost('https://three.market.alicloudapi.com');
$path = '/ai_market/ai_enterprise_knowledge/enterprise_three_keys/v1';
$result = $this->doGet($path, [
'ENTERPRISE_ID' => $enterpris_id,
'ENTERPRISE_NAME_CH' => $enterpris_name,
'ENTERPRISE_OWNER' => $enterpris_owner
]);
// 记录日志
$uid = defined('UID') ? UID : '';
platformLog([
'ENTERPRISE_ID' => $enterpris_id,
'ENTERPRISE_NAME_CH' => $enterpris_name,
'ENTERPRISE_OWNER' => $enterpris_owner
], $result, 'aliyun_api_gateway_enterprise_validate_uid_' . $uid);
return $result;
}
/**
* 企业二要素核验验证_企业名称与统一社会信用编码
* @param string $enterpris_name 企业名称_中文
* @param string $enterpris_id 企业统一社会信用代码 或 企业注册号
* @date 2022-04-01
*/
public function enterpriseValidateTwo($enterpris_name, $enterpris_id)
{
//设置域名
$this->setHost('https://three.market.alicloudapi.com');
$path = '/ai_market/ai_enterprise_knowledge/enterprise_two_keys/v1';
$result = $this->doGet($path, [
'ENTERPRISE_ID' => $enterpris_id,
'ENTERPRISE_NAME_CH' => $enterpris_name
]);
// 记录日志
$uid = defined('UID') ? UID : '';
platformLog([
'ENTERPRISE_ID' => $enterpris_id,
'ENTERPRISE_NAME_CH' => $enterpris_name
], $result, 'aliyun_api_gateway_enterprise_validate_uid_' . $uid);
return $result;
}
/**
* 企业二要素核验验证_法人名称与统一社会信用编码
* @param string $enterpris_id 企业统一社会信用代码 或 企业注册号
* @param string $enterpris_owner 企业法人名称
* @date 2022-04-01
*/
public function enterpriseValidateTwoPlus($enterpris_id, $enterpris_owner)
{
//设置域名
$this->setHost('https://three.market.alicloudapi.com');
$path = '/ai_market/ai_enterprise_knowledge/enterprise_two_keys_plus/v1';
$result = $this->doGet($path, [
'ENTERPRISE_ID' => $enterpris_id,
'ENTERPRISE_OWNER' => $enterpris_owner
]);
// 记录日志
$uid = defined('UID') ? UID : '';
platformLog([
'ENTERPRISE_ID' => $enterpris_id,
'ENTERPRISE_OWNER' => $enterpris_owner
], $result, 'aliyun_api_gateway_enterprise_validate_uid_' . $uid);
return $result;
}
}