mkm b51e352305 feat(admin): 优化订单相关功能
- 优化预先订单购物车信息列表的搜索功能,增加按店铺名称搜索
- 优化仓库订单列表的搜索条件,增加按订单ID搜索
- 修复仓库订单逻辑中获取订单类型的问题
- 在 API 控制器中添加 XpsdkPrintApi 服务的引用
2024-11-18 14:08:41 +08:00

44 lines
986 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace Xpyun\model;
use Xpyun\util\Xputil;
class RestRequest
{
/**
* 开发者ID(芯烨云后台登录账号)
*/
var $user;
/**
* 芯烨云后台开发者密钥
*/
var $userKey;
/**
* 当前UNIX时间戳10位精确到秒
*/
var $timestamp;
/**
* 对参数 user + UserKEY + timestamp 拼接后(+号表示连接符进行SHA1加密得到签名值为40位小写字符串其中 UserKEY 为用户开发者密钥
*/
var $sign;
/**
* debug=1返回非json格式的数据。仅测试时候使用
*/
var $debug;
function __construct()
{
$this->user = 'lihaink789@126.com';
$this->userKey = '2ffcdeb6fa494e9e84902fd15d3ac9af';
$this->debug = "0";
$this->timestamp = Xputil::getMillisecond();
}
public function generateSign()
{
$this->sign = Xputil::sign($this->user . $this->userKey . $this->timestamp);
}
}
?>