作者 lyh

gx

... ... @@ -67,7 +67,7 @@ class InquiryMonthlyCount extends Command
*/
public function inquiryCount(&$arr,&$startTime,&$endTime,$domain){
//TODO::上线后注释
$domain = 'https://demomark.globalso.com/';
// $domain = 'https://demomark.globalso.com/';
$inquiry_list = (new FormGlobalsoApi())->getInquiryList($domain,'',1,100000000);
//总数
$arr['total'] = $inquiry_list['data']['total'];
... ...
... ... @@ -29,7 +29,7 @@ class InquiryLogic extends BaseLogic
$page_size = $export ? 1000 : 20;
$search = $this->request['search'] ?: '';
$page = $this->request['page'] ?: 1;
$project = (new ProjectLogic())->getInfo($this->user['project_id']);
$project = (new ProjectLogic())->getProjectInfo($this->user['project_id']);
$domain = $project['deploy_optimize']['domain'] ?? '';
$list = $this->form_globalso_api->getInquiryList($domain, $search, $page, $page_size);
//处理格式 免得前端又改
... ...
... ... @@ -22,12 +22,12 @@ class DeployBuild extends Base
return Arr::setToArr($value, 'trim');
}
public function getTestDomainAttribute(): string
{
$hashids = new Hashids('test_domain', 5, 'abcdefghjkmnpqrstuvwxyz1234567890');
$code = $hashids->encode($this->project_id);
return 'https://v6-' . $code . '.globalso.site';
}
// public function getTestDomainAttribute(): string
// {
// $hashids = new Hashids('test_domain', 5, 'abcdefghjkmnpqrstuvwxyz1234567890');
// $code = $hashids->encode($this->project_id);
// return 'https://v6-' . $code . '.globalso.site';
// }
public static function clearCache($row){
$cache_key = 'project_' . $row->original['test_domain'];
... ...