21 lines
451 B
PHP
21 lines
451 B
PHP
<?php
|
|
|
|
namespace app\adminapi\controller\archives;
|
|
|
|
use app\adminapi\controller\BaseAdminController;
|
|
|
|
class ArchivesController extends BaseAdminController
|
|
{
|
|
protected array $reqHeader = [];
|
|
public function initialize()
|
|
{
|
|
parent::initialize();
|
|
$this->reqHeader = [
|
|
"appid:".env('app.app_id'),
|
|
"timestamp:".time(),
|
|
"sign:".makeSign(['appid'=>env('app.app_id'),'timestamp'=>time()],env('app.app_secret'))
|
|
];
|
|
}
|
|
|
|
|
|
} |