其余文件

This commit is contained in:
2026-04-14 17:46:22 +08:00
parent 294b68fe37
commit 3691f4db22
1343 changed files with 189847 additions and 0 deletions

View File

@ -0,0 +1,50 @@
<?php
namespace Expressage;
class Expressage
{
protected $app;
protected $key;
protected $debug;
protected $logistics_info;
public function __construct($app, $key, $debug = false)
{
$this->app = $app;
$this->key = $key;
$this->debug = $debug;
}
/**
* 格式化
* @return bool
*/
public function logisticsFormat()
{
if (empty($this->logistics_info)) {
return false;
}
$info = $this->logistics_info;
foreach ($info as $k => $v) {
$info[$k] = array_values($v);
}
return $info;
}
/**
* 电商Sign签名生成
* @param data 内容
* @param appkey Appkey
* @return DataSign签名
*/
protected function encrypt($data, $appkey)
{
return urlencode(base64_encode(md5($data . $appkey)));
}
public function getError()
{
return $this->error;
}
}