feat : catering
This commit is contained in:
64
config/autoload/print.php
Normal file
64
config/autoload/print.php
Normal file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This config file is part of item.
|
||||
*
|
||||
* @author ctexthuang
|
||||
* @contact ctexthuang@qq.com
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use function Hyperf\Support\env;
|
||||
|
||||
return [
|
||||
'yly' => [
|
||||
// 国内请求域名
|
||||
'request_url' => 'https://open-api.10ss.net/v2',
|
||||
// 国际请求域名
|
||||
'internation_request_url' => 'https://open-api-os.10ss.net/v2',
|
||||
// 国内请求域名(无 dns)
|
||||
'no_dns_request_url' => 'https://cloud-open-api.10ss.net/v2',
|
||||
// 自有应用 access_token 一天可以获取的次数
|
||||
'self_app_day_num' => 20,
|
||||
// 自有应用 access_token 过期时间 (ps:文档中说这个值无效,可以随便设置) 设置6小时 重新获取access_token后,旧的access_token将在两小时内失效。因此,请确保及时替换为最新获取的access_token
|
||||
'self_app_token_expired' => 21600,
|
||||
// grant type
|
||||
'grant_type' => 'client_credentials',
|
||||
// 权限范围
|
||||
'scope' => 'all',
|
||||
// 自有 app授权 url
|
||||
'self_app_accredit_url' => '/oauth/oauth',
|
||||
// 开放 oauth 2.0授权 url
|
||||
'publicly_app_oauth_accredit_url' => '/oauth/authorize',
|
||||
// 开放授权
|
||||
'publicly_app_accredit_url' => '/oauth/scancodemodel',
|
||||
// 打印文本
|
||||
'print_text_url' => '/print/index',
|
||||
// 打印图片
|
||||
'print_image_url' => '/pictureprint/index',
|
||||
// string 取消所有(当前终端未打印)
|
||||
'cancel_all_url' => '/printer/cancelall',
|
||||
// client_id
|
||||
'client_id' => '1093877947',
|
||||
// client_secret
|
||||
'client_secret' => '65a5949913c3e7e91c943f35aeee8c2e',
|
||||
// 默认1,传入本参数,会根据origin_id进行幂等处理,2小时内相同origin_id会返回上一次的结果
|
||||
'idempotence' => 1,
|
||||
// 打印抬头
|
||||
'content_title' => env('print_content_title','合合乐团餐'),
|
||||
// 打印提示
|
||||
'content_edible_time_tips' => env('print_content_edible_time_tips','建议四小时内食用完'),
|
||||
// 打印时间
|
||||
'production_date' => env('print_production_date','11:00:00'),
|
||||
],
|
||||
'common' => [
|
||||
// 打印抬头
|
||||
'content_title' => env('print_content_title','合合乐团餐'),
|
||||
// 打印提示
|
||||
'content_edible_time_tips' => env('print_content_edible_time_tips','建议四小时内食用完'),
|
||||
// 打印时间
|
||||
'production_date' => env('print_production_date','11:00:00'),
|
||||
]
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user