硕顺crm后台
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.
 
 
 
 
 
 

28 lines
483 B

<?php
namespace WeWork\ApiCache;
use WeWork\Traits\HttpClientTrait;
class Ticket extends AbstractApiCache
{
use HttpClientTrait;
/**
* @return string
*/
protected function getCacheKey(): string
{
return md5('wework.api.ticket');
}
/**
* @return string
*/
protected function getFromServer(): string
{
$data = $this->httpClient->get('ticket/get', ['type' => 'wx_card']);
return $data['ticket'];
}
}