delete assets

h888
Wayne Hsu 3 years ago
commit 9a4733db02

@ -1,4 +1,5 @@
<?php <?php
namespace app\adminapi\controller\v1; namespace app\adminapi\controller\v1;
use app\adminapi\ApiController; use app\adminapi\ApiController;
@ -6,19 +7,20 @@ use think\facade\Db;
class Bonus extends ApiController class Bonus extends ApiController
{ {
public function getBonusList(){ public function getBonusList()
{
$page = input('page'); $page = input('page');
$pageSize = input('pageSize'); $pageSize = input('pageSize');
$do = Db::name('bonus_type'); $do = Db::name('bonus_type');
$bonus=$do $bonus = $do
->page($page,$pageSize) ->page($page, $pageSize)
->select() ->select()
->toArray(); ->toArray();
if(!$bonus){ if (!$bonus) {
$bonus=[]; $bonus = [];
} }
$send_type = [ $send_type = [
@ -30,8 +32,10 @@ class Bonus extends ApiController
'6' => '註冊發放', '6' => '註冊發放',
]; ];
foreach($bonus as $key => $val){ foreach ($bonus as $key => $val) {
$bonus[$key]['send_type'] = $send_type[$val['send_type']]; $bonus[$key]['send_type'] = $send_type[$val['send_type']];
$bonus[$key]['bonus_number'] = Db::name('bonus')->where('bonus_type_id', $val['type_id'])->sum('bonus_number');
$bonus[$key]['remain_number'] = Db::name('bonus')->where('bonus_type_id', $val['type_id'])->sum('remain_number');
} }
$rtn = [ $rtn = [
@ -41,47 +45,79 @@ class Bonus extends ApiController
return $this->Success($rtn); return $this->Success($rtn);
} }
public function addBonus(){ public function getBonus()
{
$type_id = input('type_id');
$bonus = Db::name('bonus_type')
->field('type_id,type_name,type_money,min_amount,send_type,send_start_date,send_end_date,use_start_date,use_end_date')
->where('type_id', $type_id)->find();
return $this->Success($bonus);
}
public function addBonus()
{
$data = input('post.'); $data = input('post.');
unset($data['act']); unset($data['act']);
$data['send_start_date'] = isset($data['send_start_date'])?strtotime($data['send_start_date']):0; $data['send_start_date'] = isset($data['send_start_date']) ? strtotime($data['send_start_date']) : 0;
$data['send_end_date'] = isset($data['send_end_date'])?strtotime($data['send_end_date']):0; $data['send_end_date'] = isset($data['send_end_date']) ? strtotime($data['send_end_date']) : 0;
$data['use_start_date'] = isset($data['use_start_date'])?strtotime($data['use_start_date']):0; $data['use_start_date'] = isset($data['use_start_date']) ? strtotime($data['use_start_date']) : 0;
$data['use_end_date'] = isset($data['use_end_date'])?strtotime($data['use_end_date']):0; $data['use_end_date'] = isset($data['use_end_date']) ? strtotime($data['use_end_date']) : 0;
$do = Db::name('bonus_type'); $do = Db::name('bonus_type');
$result = $do->insert($data); $result = $do->insert($data);
if(!$result){ if (!$result) {
return $this->Error('操作失败');
}
return $this->Success('操作成功');
}
public function updateBonus()
{
$data = input('post.');
unset($data['act']);
$data['send_start_date'] = isset($data['send_start_date']) ? strtotime($data['send_start_date']) : 0;
$data['send_end_date'] = isset($data['send_end_date']) ? strtotime($data['send_end_date']) : 0;
$data['use_start_date'] = isset($data['use_start_date']) ? strtotime($data['use_start_date']) : 0;
$data['use_end_date'] = isset($data['use_end_date']) ? strtotime($data['use_end_date']) : 0;
$result = Db::name('bonus_type')
->where('type_id', $data['type_id'])
->update($data);
if (!$result) {
return $this->Error('操作失败'); return $this->Error('操作失败');
} }
return $this->Success('操作成功'); return $this->Success('操作成功');
} }
public function deleteBonus(){ public function deleteBonus()
{
$id = input('id'); $id = input('id');
$do = Db::name('bonus_type'); $do = Db::name('bonus_type');
$do->where('type_id',$id)->delete(); $do->where('type_id', $id)->delete();
return $this->Success('操作成功'); return $this->Success('操作成功');
} }
public function getUseBonusList(){ public function getUseBonusList()
{
$page = input('page'); $page = input('page');
$pageSize = input('pageSize'); $pageSize = input('pageSize');
$do = Db::name('user_bonus'); $do = Db::name('bonus');
$rtn=$do $rtn = $do
->page($page,$pageSize) ->page($page, $pageSize)
->select() ->select()
->toArray(); ->toArray();
if(!$rtn){ if (!$rtn) {
$rtn=[]; $rtn = [];
} }
$send_type = [ $send_type = [
@ -93,15 +129,15 @@ class Bonus extends ApiController
'6' => '註冊發放', '6' => '註冊發放',
]; ];
foreach($rtn as $key => $val){ foreach ($rtn as $key => $val) {
if(!empty($val['send_type'])){ if (!empty($val['send_type'])) {
$rtn[$key]['send_type'] = $send_type[$val['send_type']]; $rtn[$key]['send_type'] = $send_type[$val['send_type']];
}else{ } else {
$rtn[$key]['send_type'] = '未知'; $rtn[$key]['send_type'] = '未知';
} }
$rtn[$key]['order_id'] = empty($val['order_id'])?'':$val['order_id']; $rtn[$key]['order_id'] = empty($val['order_id']) ? '' : $val['order_id'];
$rtn[$key]['user_id'] = empty($val['user_id'])?'':$val['user_id']; $rtn[$key]['user_id'] = empty($val['user_id']) ? '' : $val['user_id'];
$rtn[$key]['used_time'] = empty($val['used_time'])?'未使用':$val['used_time']; $rtn[$key]['used_time'] = empty($val['used_time']) ? '未使用' : $val['used_time'];
} }
$rtn = [ $rtn = [
@ -110,5 +146,78 @@ class Bonus extends ApiController
]; ];
return $this->Success($rtn); return $this->Success($rtn);
} }
public function getUseList()
{
$result = Db::name('user_bonus')
->alias('ub')
->join('users u', 'ub.user_id = u.user_id')
->join('order_info o', 'ub.order_id = o.order_id')
->field('ub.*,u.sso_user_id,o.order_sn')
->where('ub.bonus_id', input('bonus_id'))
->select()
->toArray();
if (!$result) {
$result = [];
}
} foreach ($result as $key => $val) {
$result[$key]['used_time'] = empty($val['used_time']) ? '未使用' : date('Y-m-d H:i:s', $val['used_time']);
}
return $this->Success($result);
}
public function send()
{
$data = [
'bonus_type_id' => input('type_id'),
'create_time' => time()
];
if (empty(input('type_id'))) {
return $this->Error('請選擇優惠券');
}
try {
//如何send_type為1則產生一組優惠券
if (input('send_type') == 1) {
$data['bonus_number'] = input('number');
$data['remain_number'] = input('number');
$data['bonus_sn'] = $this->genBonusSn();
$result = Db::name('bonus')->insert($data);
} else {
$data['bonus_number'] = 1;
$data['remain_number'] = 1;
for ($i = 0; $i < input('number'); $i++) {
$data['bonus_sn'] = $this->genBonusSn();
$result = Db::name('bonus')->insert($data);
}
}
return $this->Success('操作成功');
} catch (\Exception $e) {
return $this->Error($e->getMessage());
}
}
private function genBonusSn($length = 10)
{
$characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890';
$code = '';
for ($i = 0; $i < $length; $i++) {
$code .= $characters[rand(0, strlen($characters) - 1)];
}
//檢查是否重複
$result = Db::name('user_bonus')
->where('bonus_sn', $code)
->where('used_time', 0)
->find();
//如果重複就重新產生
if ($result) {
$code = $this->genBonusSn();
}
return $code;
}
}

@ -0,0 +1,35 @@
<?php
namespace app\appapi\controller\v1;
use app\appapi\ApiController;
use think\facade\Db;
class Bonus extends ApiController
{
public function check(){
$bonus_sn = input('bonus_sn');
$result = Db::name('bonus')
->alias('b')
->leftjoin('bonus_type bt','b.bonus_type_id=bt.type_id')
->where('bonus_sn',$bonus_sn)
->find();
if(!$result){
return $this->Error('優惠券不存在');
}
if($result['remain_number']==0){
return $this->Error('優惠券已用完');
}
$rtn = [
'type_money' => $result['type_money'],
'type_name' => $result['type_name'],
'bonus_number' => $result['bonus_number'],
'remain_number' => $result['remain_number'],
];
return $this->Success($rtn);
}
}

@ -27,6 +27,24 @@ class Order extends ApiController
//取得用戶資料 //取得用戶資料
$user_info = User::getUserInfo($this->user_id); $user_info = User::getUserInfo($this->user_id);
//檢查優惠券
$update_bonus = false;
if(strlen($data['bonus_sn']) == 10){
$bonus = Db::name('bonus')
->where('bonus_sn', $data['bonus_sn'])
->find();
if($bonus['remain_number'] == 0){
return $this->Error('優惠券已用完');
}
Db::name('bonus')
->where('bonus_sn', $data['bonus_sn'])
->dec('remain_number')
->update();
$update_bonus = true;
}
//加入訂單 //加入訂單
$order = [ $order = [
@ -39,6 +57,7 @@ class Order extends ApiController
'shipping_name' => Db::name('shipping')->where('shipping_id', $data['shipping']['shipping_id'])->value('shipping_name'), 'shipping_name' => Db::name('shipping')->where('shipping_id', $data['shipping']['shipping_id'])->value('shipping_name'),
'address' => json_encode($data['shipping']['extra_data']), 'address' => json_encode($data['shipping']['extra_data']),
'pay_id' => intval($data['payment']['pay_id']), 'pay_id' => intval($data['payment']['pay_id']),
'pay_name' => ($data['payment']['pay_id']!=0)?Db::name('payment')->where('pay_id', $data['payment']['pay_id'])->value('pay_name'):'貨到付款',
'shipping_fee' => floatval($data['shipping']['shipping_fee']), 'shipping_fee' => floatval($data['shipping']['shipping_fee']),
'pay_fee' => floatval($data['payment']['pay_fee']), 'pay_fee' => floatval($data['payment']['pay_fee']),
'goods_amount' => intval($data['goods_amount']), 'goods_amount' => intval($data['goods_amount']),
@ -89,6 +108,17 @@ class Order extends ApiController
// ->where('order_id',$order_id) // ->where('order_id',$order_id)
// ->update($main_goods_data); // ->update($main_goods_data);
// } // }
if($update_bonus){
Db::name('user_bonus')
->insert([
'bonus_id' => $bonus['bonus_id'],
'bonus_sn' => $bonus['bonus_sn'],
'user_id' => $this->user_id,
'used_time' => time(),
'order_id' => $order_id
]);
}
if ($data['shipping']['shipping_code'] == 'ecpay' && $data['payment']['pay_code'] == 'cod') { if ($data['shipping']['shipping_code'] == 'ecpay' && $data['payment']['pay_code'] == 'cod') {
//串接綠界物流 //串接綠界物流
$rtn = \app\common\shipping\Shipping::createShipping('ecpay', $order['order_sn']); $rtn = \app\common\shipping\Shipping::createShipping('ecpay', $order['order_sn']);
@ -110,9 +140,9 @@ class Order extends ApiController
$db_rtn->delete(); $db_rtn->delete();
// 使用payment_id取得pay_code // 使用payment_id取得pay_code
$pay_code = Db::name('payment')->where('pay_id', $order['pay_id'])->value('pay_code'); // $pay_code = Db::name('payment')->where('pay_id', $order['pay_id'])->value('pay_code');
return $this->Success(['order_sn' => $order['order_sn'], 'pay_code' => $pay_code]); return $this->Success(['order_sn' => $order['order_sn'], 'pay_code' => $data['payment']['pay_code']]);
} }
//取得訂單列表 //取得訂單列表

@ -1,8 +1,7 @@
<?php <?php
// 事件定义文件 // 事件定义文件
return [ return [
'bind' => [ 'bind' => [],
],
'listen' => [ 'listen' => [
'AppInit' => [], 'AppInit' => [],
@ -10,8 +9,16 @@ return [
'HttpEnd' => [], 'HttpEnd' => [],
'LogLevel' => [], 'LogLevel' => [],
'LogWrite' => [], 'LogWrite' => [],
'swoole.websocket.Connect' => [
\app\listener\WsConnect::class
],
'swoole.websocket.Close' => [
\app\listener\WsClose::class
],
'swoole.websocket.Test' => [
\app\listener\WsTest::class
],
], ],
'subscribe' => [ 'subscribe' => [],
],
]; ];

@ -0,0 +1,17 @@
<?php
declare (strict_types = 1);
namespace app\listener;
class WsClose
{
/**
* 事件监听处理
*
* @return mixed
*/
public function handle($event)
{
//
}
}

@ -0,0 +1,21 @@
<?php
declare (strict_types = 1);
namespace app\listener;
class WsConnect
{
/**
* 事件监听处理
*
* @return mixed
*/
public function handle($event)
{
$ws = app('\think\swoole\Websocket');
print_r($ws);
// 獲取當前傳送者的fd
// $fd = $ws->getSender();
// echo "server: handshake success with fd{$fd}\n";
}
}

@ -0,0 +1,20 @@
<?php
declare (strict_types = 1);
namespace app\listener;
class WsTest
{
/**
* 事件监听处理
*
* @return mixed
*/
public function handle($event, \think\swoole\websocket $ws)
{
$fd = $ws->getSender();
$data = json_encode($event);
echo "receive from {$fd}:{$data}\n";
$ws->emit("this is server", $fd);
}
}

@ -31,7 +31,8 @@
"firebase/php-jwt": "^6.3", "firebase/php-jwt": "^6.3",
"paragonie/sodium_compat": "^1.19", "paragonie/sodium_compat": "^1.19",
"topthink/think-filesystem": "^2.0", "topthink/think-filesystem": "^2.0",
"ecpay/sdk": "^1.2" "ecpay/sdk": "^1.2",
"topthink/think-swoole": "^4.0"
}, },
"require-dev": { "require-dev": {
"symfony/var-dumper": "^4.2", "symfony/var-dumper": "^4.2",

688
composer.lock generated

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "43f0f90b248a23d2f06795c69b2503f2", "content-hash": "0062897fc4bb61be5d05fa74ea448d25",
"packages": [ "packages": [
{ {
"name": "aferrandini/phpqrcode", "name": "aferrandini/phpqrcode",
@ -144,25 +144,25 @@
}, },
{ {
"name": "firebase/php-jwt", "name": "firebase/php-jwt",
"version": "v6.4.0", "version": "v6.5.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/firebase/php-jwt.git", "url": "https://github.com/firebase/php-jwt.git",
"reference": "4dd1e007f22a927ac77da5a3fbb067b42d3bc224" "reference": "e94e7353302b0c11ec3cfff7180cd0b1743975d2"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/firebase/php-jwt/zipball/4dd1e007f22a927ac77da5a3fbb067b42d3bc224", "url": "https://api.github.com/repos/firebase/php-jwt/zipball/e94e7353302b0c11ec3cfff7180cd0b1743975d2",
"reference": "4dd1e007f22a927ac77da5a3fbb067b42d3bc224", "reference": "e94e7353302b0c11ec3cfff7180cd0b1743975d2",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": "^7.1||^8.0" "php": "^7.4||^8.0"
}, },
"require-dev": { "require-dev": {
"guzzlehttp/guzzle": "^6.5||^7.4", "guzzlehttp/guzzle": "^6.5||^7.4",
"phpspec/prophecy-phpunit": "^1.1", "phpspec/prophecy-phpunit": "^2.0",
"phpunit/phpunit": "^7.5||^9.5", "phpunit/phpunit": "^9.5",
"psr/cache": "^1.0||^2.0", "psr/cache": "^1.0||^2.0",
"psr/http-client": "^1.0", "psr/http-client": "^1.0",
"psr/http-factory": "^1.0" "psr/http-factory": "^1.0"
@ -201,27 +201,27 @@
], ],
"support": { "support": {
"issues": "https://github.com/firebase/php-jwt/issues", "issues": "https://github.com/firebase/php-jwt/issues",
"source": "https://github.com/firebase/php-jwt/tree/v6.4.0" "source": "https://github.com/firebase/php-jwt/tree/v6.5.0"
}, },
"time": "2023-02-09T21:01:23+00:00" "time": "2023-05-12T15:47:07+00:00"
}, },
{ {
"name": "guzzlehttp/guzzle", "name": "guzzlehttp/guzzle",
"version": "7.5.1", "version": "7.7.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/guzzle/guzzle.git", "url": "https://github.com/guzzle/guzzle.git",
"reference": "b964ca597e86b752cd994f27293e9fa6b6a95ed9" "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/guzzle/guzzle/zipball/b964ca597e86b752cd994f27293e9fa6b6a95ed9", "url": "https://api.github.com/repos/guzzle/guzzle/zipball/fb7566caccf22d74d1ab270de3551f72a58399f5",
"reference": "b964ca597e86b752cd994f27293e9fa6b6a95ed9", "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"ext-json": "*", "ext-json": "*",
"guzzlehttp/promises": "^1.5", "guzzlehttp/promises": "^1.5.3 || ^2.0",
"guzzlehttp/psr7": "^1.9.1 || ^2.4.5", "guzzlehttp/psr7": "^1.9.1 || ^2.4.5",
"php": "^7.2.5 || ^8.0", "php": "^7.2.5 || ^8.0",
"psr/http-client": "^1.0", "psr/http-client": "^1.0",
@ -233,7 +233,8 @@
"require-dev": { "require-dev": {
"bamarni/composer-bin-plugin": "^1.8.1", "bamarni/composer-bin-plugin": "^1.8.1",
"ext-curl": "*", "ext-curl": "*",
"php-http/client-integration-tests": "^3.0", "php-http/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999",
"php-http/message-factory": "^1.1",
"phpunit/phpunit": "^8.5.29 || ^9.5.23", "phpunit/phpunit": "^8.5.29 || ^9.5.23",
"psr/log": "^1.1 || ^2.0 || ^3.0" "psr/log": "^1.1 || ^2.0 || ^3.0"
}, },
@ -247,9 +248,6 @@
"bamarni-bin": { "bamarni-bin": {
"bin-links": true, "bin-links": true,
"forward-command": false "forward-command": false
},
"branch-alias": {
"dev-master": "7.5-dev"
} }
}, },
"autoload": { "autoload": {
@ -315,7 +313,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/guzzle/guzzle/issues", "issues": "https://github.com/guzzle/guzzle/issues",
"source": "https://github.com/guzzle/guzzle/tree/7.5.1" "source": "https://github.com/guzzle/guzzle/tree/7.7.0"
}, },
"funding": [ "funding": [
{ {
@ -331,38 +329,37 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2023-04-17T16:30:08+00:00" "time": "2023-05-21T14:04:53+00:00"
}, },
{ {
"name": "guzzlehttp/promises", "name": "guzzlehttp/promises",
"version": "1.5.2", "version": "2.0.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/guzzle/promises.git", "url": "https://github.com/guzzle/promises.git",
"reference": "b94b2807d85443f9719887892882d0329d1e2598" "reference": "3a494dc7dc1d7d12e511890177ae2d0e6c107da6"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/guzzle/promises/zipball/b94b2807d85443f9719887892882d0329d1e2598", "url": "https://api.github.com/repos/guzzle/promises/zipball/3a494dc7dc1d7d12e511890177ae2d0e6c107da6",
"reference": "b94b2807d85443f9719887892882d0329d1e2598", "reference": "3a494dc7dc1d7d12e511890177ae2d0e6c107da6",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=5.5" "php": "^7.2.5 || ^8.0"
}, },
"require-dev": { "require-dev": {
"symfony/phpunit-bridge": "^4.4 || ^5.1" "bamarni/composer-bin-plugin": "^1.8.1",
"phpunit/phpunit": "^8.5.29 || ^9.5.23"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "bamarni-bin": {
"dev-master": "1.5-dev" "bin-links": true,
"forward-command": false
} }
}, },
"autoload": { "autoload": {
"files": [
"src/functions_include.php"
],
"psr-4": { "psr-4": {
"GuzzleHttp\\Promise\\": "src/" "GuzzleHttp\\Promise\\": "src/"
} }
@ -399,7 +396,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/guzzle/promises/issues", "issues": "https://github.com/guzzle/promises/issues",
"source": "https://github.com/guzzle/promises/tree/1.5.2" "source": "https://github.com/guzzle/promises/tree/2.0.0"
}, },
"funding": [ "funding": [
{ {
@ -415,7 +412,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2022-08-28T14:55:35+00:00" "time": "2023-05-21T13:50:22+00:00"
}, },
{ {
"name": "guzzlehttp/psr7", "name": "guzzlehttp/psr7",
@ -728,6 +725,214 @@
], ],
"time": "2022-04-17T13:12:02+00:00" "time": "2022-04-17T13:12:02+00:00"
}, },
{
"name": "nette/php-generator",
"version": "v3.6.9",
"source": {
"type": "git",
"url": "https://github.com/nette/php-generator.git",
"reference": "d31782f7bd2ae84ad06f863391ec3fb77ca4d0a6"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nette/php-generator/zipball/d31782f7bd2ae84ad06f863391ec3fb77ca4d0a6",
"reference": "d31782f7bd2ae84ad06f863391ec3fb77ca4d0a6",
"shasum": ""
},
"require": {
"nette/utils": "^3.1.2",
"php": ">=7.2 <8.3"
},
"require-dev": {
"nette/tester": "^2.4",
"nikic/php-parser": "^4.13",
"phpstan/phpstan": "^0.12",
"tracy/tracy": "^2.8"
},
"suggest": {
"nikic/php-parser": "to use ClassType::withBodiesFrom() & GlobalFunction::withBodyFrom()"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.6-dev"
}
},
"autoload": {
"classmap": [
"src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause",
"GPL-2.0-only",
"GPL-3.0-only"
],
"authors": [
{
"name": "David Grudl",
"homepage": "https://davidgrudl.com"
},
{
"name": "Nette Community",
"homepage": "https://nette.org/contributors"
}
],
"description": "🐘 Nette PHP Generator: generates neat PHP code for you. Supports new PHP 8.1 features.",
"homepage": "https://nette.org",
"keywords": [
"code",
"nette",
"php",
"scaffolding"
],
"support": {
"issues": "https://github.com/nette/php-generator/issues",
"source": "https://github.com/nette/php-generator/tree/v3.6.9"
},
"time": "2022-10-04T11:49:47+00:00"
},
{
"name": "nette/utils",
"version": "v3.2.9",
"source": {
"type": "git",
"url": "https://github.com/nette/utils.git",
"reference": "c91bac3470c34b2ecd5400f6e6fdf0b64a836a5c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nette/utils/zipball/c91bac3470c34b2ecd5400f6e6fdf0b64a836a5c",
"reference": "c91bac3470c34b2ecd5400f6e6fdf0b64a836a5c",
"shasum": ""
},
"require": {
"php": ">=7.2 <8.3"
},
"conflict": {
"nette/di": "<3.0.6"
},
"require-dev": {
"jetbrains/phpstorm-attributes": "dev-master",
"nette/tester": "~2.0",
"phpstan/phpstan": "^1.0",
"tracy/tracy": "^2.3"
},
"suggest": {
"ext-gd": "to use Image",
"ext-iconv": "to use Strings::webalize(), toAscii(), chr() and reverse()",
"ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()",
"ext-json": "to use Nette\\Utils\\Json",
"ext-mbstring": "to use Strings::lower() etc...",
"ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()",
"ext-xml": "to use Strings::length() etc. when mbstring is not available"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "3.2-dev"
}
},
"autoload": {
"classmap": [
"src/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause",
"GPL-2.0-only",
"GPL-3.0-only"
],
"authors": [
{
"name": "David Grudl",
"homepage": "https://davidgrudl.com"
},
{
"name": "Nette Community",
"homepage": "https://nette.org/contributors"
}
],
"description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.",
"homepage": "https://nette.org",
"keywords": [
"array",
"core",
"datetime",
"images",
"json",
"nette",
"paginator",
"password",
"slugify",
"string",
"unicode",
"utf-8",
"utility",
"validation"
],
"support": {
"issues": "https://github.com/nette/utils/issues",
"source": "https://github.com/nette/utils/tree/v3.2.9"
},
"time": "2023-01-18T03:26:20+00:00"
},
{
"name": "open-smf/connection-pool",
"version": "v1.0.16",
"source": {
"type": "git",
"url": "https://github.com/open-smf/connection-pool.git",
"reference": "f70e47dbf56f1869d3207e15825cf38810b865e0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/open-smf/connection-pool/zipball/f70e47dbf56f1869d3207e15825cf38810b865e0",
"reference": "f70e47dbf56f1869d3207e15825cf38810b865e0",
"shasum": ""
},
"require": {
"ext-json": "*",
"ext-swoole": ">=4.2.9",
"php": ">=7.0.0"
},
"require-dev": {
"swoole/ide-helper": "@dev"
},
"suggest": {
"ext-redis": "A PHP extension for Redis."
},
"type": "library",
"autoload": {
"psr-4": {
"Smf\\ConnectionPool\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Xie Biao",
"email": "hhxsv5@sina.com"
}
],
"description": "A common connection pool based on Swoole is usually used as the database connection pool.",
"homepage": "https://github.com/open-smf/connection-pool",
"keywords": [
"connection-pool",
"database-connection-pool",
"swoole"
],
"support": {
"issues": "https://github.com/open-smf/connection-pool/issues",
"source": "https://github.com/open-smf/connection-pool"
},
"time": "2021-03-01T04:13:24+00:00"
},
{ {
"name": "paragonie/random_compat", "name": "paragonie/random_compat",
"version": "v9.99.100", "version": "v9.99.100",
@ -780,16 +985,16 @@
}, },
{ {
"name": "paragonie/sodium_compat", "name": "paragonie/sodium_compat",
"version": "v1.19.0", "version": "v1.20.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/paragonie/sodium_compat.git", "url": "https://github.com/paragonie/sodium_compat.git",
"reference": "cb15e403ecbe6a6cc515f855c310eb6b1872a933" "reference": "e592a3e06d1fa0d43988c7c7d9948ca836f644b6"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/paragonie/sodium_compat/zipball/cb15e403ecbe6a6cc515f855c310eb6b1872a933", "url": "https://api.github.com/repos/paragonie/sodium_compat/zipball/e592a3e06d1fa0d43988c7c7d9948ca836f644b6",
"reference": "cb15e403ecbe6a6cc515f855c310eb6b1872a933", "reference": "e592a3e06d1fa0d43988c7c7d9948ca836f644b6",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -860,9 +1065,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/paragonie/sodium_compat/issues", "issues": "https://github.com/paragonie/sodium_compat/issues",
"source": "https://github.com/paragonie/sodium_compat/tree/v1.19.0" "source": "https://github.com/paragonie/sodium_compat/tree/v1.20.0"
}, },
"time": "2022-09-26T03:40:35+00:00" "time": "2023-04-30T00:54:53+00:00"
}, },
{ {
"name": "psr/container", "name": "psr/container",
@ -1275,6 +1480,81 @@
}, },
"time": "2019-03-08T08:55:37+00:00" "time": "2019-03-08T08:55:37+00:00"
}, },
{
"name": "stechstudio/backoff",
"version": "1.2",
"source": {
"type": "git",
"url": "https://github.com/stechstudio/backoff.git",
"reference": "816e46107a6be2e1072ba0ff2cb26034872dfa49"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/stechstudio/backoff/zipball/816e46107a6be2e1072ba0ff2cb26034872dfa49",
"reference": "816e46107a6be2e1072ba0ff2cb26034872dfa49",
"shasum": ""
},
"require-dev": {
"phpunit/phpunit": "5.5.*"
},
"type": "library",
"autoload": {
"files": [
"src/helpers.php"
],
"psr-4": {
"STS\\Backoff\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Joseph Szobody",
"email": "joseph@stechstudio.com"
}
],
"description": "PHP library providing retry functionality with multiple backoff strategies and jitter support",
"support": {
"issues": "https://github.com/stechstudio/backoff/issues",
"source": "https://github.com/stechstudio/backoff/tree/1.2"
},
"time": "2020-12-26T14:57:10+00:00"
},
{
"name": "swoole/ide-helper",
"version": "4.8.13",
"source": {
"type": "git",
"url": "https://github.com/swoole/ide-helper.git",
"reference": "d100c446b2e3d56430cbcab5dc3fa20a9f35c4ef"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/swoole/ide-helper/zipball/d100c446b2e3d56430cbcab5dc3fa20a9f35c4ef",
"reference": "d100c446b2e3d56430cbcab5dc3fa20a9f35c4ef",
"shasum": ""
},
"type": "library",
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "Team Swoole",
"email": "team@swoole.com"
}
],
"description": "IDE help files for Swoole.",
"support": {
"issues": "https://github.com/swoole/ide-helper/issues",
"source": "https://github.com/swoole/ide-helper/tree/4.8.13"
},
"time": "2023-03-20T06:46:24+00:00"
},
{ {
"name": "symfony/deprecation-contracts", "name": "symfony/deprecation-contracts",
"version": "v2.5.2", "version": "v2.5.2",
@ -1342,6 +1622,152 @@
], ],
"time": "2022-01-02T09:53:40+00:00" "time": "2022-01-02T09:53:40+00:00"
}, },
{
"name": "symfony/finder",
"version": "v5.4.21",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
"reference": "078e9a5e1871fcfe6a5ce421b539344c21afef19"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/finder/zipball/078e9a5e1871fcfe6a5ce421b539344c21afef19",
"reference": "078e9a5e1871fcfe6a5ce421b539344c21afef19",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
"symfony/deprecation-contracts": "^2.1|^3",
"symfony/polyfill-php80": "^1.16"
},
"type": "library",
"autoload": {
"psr-4": {
"Symfony\\Component\\Finder\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Finds files and directories via an intuitive fluent interface",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/finder/tree/v5.4.21"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2023-02-16T09:33:00+00:00"
},
{
"name": "symfony/polyfill-php80",
"version": "v1.27.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php80.git",
"reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936",
"reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936",
"shasum": ""
},
"require": {
"php": ">=7.1"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "1.27-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
"files": [
"bootstrap.php"
],
"psr-4": {
"Symfony\\Polyfill\\Php80\\": ""
},
"classmap": [
"Resources/stubs"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Ion Bazan",
"email": "ion.bazan@gmail.com"
},
{
"name": "Nicolas Grekas",
"email": "p@tchwork.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
"polyfill",
"portable",
"shim"
],
"support": {
"source": "https://github.com/symfony/polyfill-php80/tree/v1.27.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2022-11-03T14:55:06+00:00"
},
{ {
"name": "thans/tp-jwt-auth", "name": "thans/tp-jwt-auth",
"version": "v1.3.1", "version": "v1.3.1",
@ -1399,16 +1825,16 @@
}, },
{ {
"name": "topthink/framework", "name": "topthink/framework",
"version": "v6.1.2", "version": "v6.1.3",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/top-think/framework.git", "url": "https://github.com/top-think/framework.git",
"reference": "67235be5b919aaaf1de5aed9839f65d8e766aca3" "reference": "7c324e7011246f0064b055b62ab9c3921cf0a041"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/top-think/framework/zipball/67235be5b919aaaf1de5aed9839f65d8e766aca3", "url": "https://api.github.com/repos/top-think/framework/zipball/7c324e7011246f0064b055b62ab9c3921cf0a041",
"reference": "67235be5b919aaaf1de5aed9839f65d8e766aca3", "reference": "7c324e7011246f0064b055b62ab9c3921cf0a041",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1458,9 +1884,9 @@
], ],
"support": { "support": {
"issues": "https://github.com/top-think/framework/issues", "issues": "https://github.com/top-think/framework/issues",
"source": "https://github.com/top-think/framework/tree/v6.1.2" "source": "https://github.com/top-think/framework/tree/v6.1.3"
}, },
"time": "2023-02-08T02:24:01+00:00" "time": "2023-05-22T03:02:08+00:00"
}, },
{ {
"name": "topthink/think-filesystem", "name": "topthink/think-filesystem",
@ -1556,16 +1982,16 @@
}, },
{ {
"name": "topthink/think-multi-app", "name": "topthink/think-multi-app",
"version": "v1.0.16", "version": "v1.0.17",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/top-think/think-multi-app.git", "url": "https://github.com/top-think/think-multi-app.git",
"reference": "07b9183855150455e1f76f8cbe9d77d6d1bc399f" "reference": "4055a6187296ac16c0bc7bbab4ed5d92f82f791c"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/top-think/think-multi-app/zipball/07b9183855150455e1f76f8cbe9d77d6d1bc399f", "url": "https://api.github.com/repos/top-think/think-multi-app/zipball/4055a6187296ac16c0bc7bbab4ed5d92f82f791c",
"reference": "07b9183855150455e1f76f8cbe9d77d6d1bc399f", "reference": "4055a6187296ac16c0bc7bbab4ed5d92f82f791c",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1595,25 +2021,25 @@
"email": "liu21st@gmail.com" "email": "liu21st@gmail.com"
} }
], ],
"description": "thinkphp6 multi app support", "description": "thinkphp multi app support",
"support": { "support": {
"issues": "https://github.com/top-think/think-multi-app/issues", "issues": "https://github.com/top-think/think-multi-app/issues",
"source": "https://github.com/top-think/think-multi-app/tree/v1.0.16" "source": "https://github.com/top-think/think-multi-app/tree/v1.0.17"
}, },
"time": "2023-02-07T08:40:09+00:00" "time": "2023-03-29T02:04:29+00:00"
}, },
{ {
"name": "topthink/think-orm", "name": "topthink/think-orm",
"version": "v2.0.60", "version": "v2.0.61",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/top-think/think-orm.git", "url": "https://github.com/top-think/think-orm.git",
"reference": "8bc34a4307fa27186c0e96a9b3de3cb23aa1ed46" "reference": "10528ebf4a5106b19c3bac9c6deae7a67ff49de6"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/top-think/think-orm/zipball/8bc34a4307fa27186c0e96a9b3de3cb23aa1ed46", "url": "https://api.github.com/repos/top-think/think-orm/zipball/10528ebf4a5106b19c3bac9c6deae7a67ff49de6",
"reference": "8bc34a4307fa27186c0e96a9b3de3cb23aa1ed46", "reference": "10528ebf4a5106b19c3bac9c6deae7a67ff49de6",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1653,112 +2079,102 @@
], ],
"support": { "support": {
"issues": "https://github.com/top-think/think-orm/issues", "issues": "https://github.com/top-think/think-orm/issues",
"source": "https://github.com/top-think/think-orm/tree/v2.0.60" "source": "https://github.com/top-think/think-orm/tree/v2.0.61"
}, },
"time": "2023-03-19T04:51:56+00:00" "time": "2023-04-20T14:27:51+00:00"
} },
],
"packages-dev": [
{ {
"name": "symfony/polyfill-mbstring", "name": "topthink/think-swoole",
"version": "v1.27.0", "version": "v4.0.9",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git", "url": "https://github.com/top-think/think-swoole.git",
"reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534" "reference": "edc326d92fc738c290d5777f0c544477759fa7f3"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534", "url": "https://api.github.com/repos/top-think/think-swoole/zipball/edc326d92fc738c290d5777f0c544477759fa7f3",
"reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534", "reference": "edc326d92fc738c290d5777f0c544477759fa7f3",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.1" "ext-json": "*",
}, "ext-swoole": ">=4.6",
"provide": { "nette/php-generator": "^3.2",
"ext-mbstring": "*" "open-smf/connection-pool": "~1.0",
"php": ">=7.4",
"stechstudio/backoff": "^1.2",
"swoole/ide-helper": "^4.3",
"symfony/finder": "^4.3.2|^5.1",
"topthink/framework": "^6.0"
}, },
"suggest": { "require-dev": {
"ext-mbstring": "For best performance" "phpunit/phpunit": "^9.5",
"symfony/var-dumper": "^4.3|^5.1",
"topthink/think-queue": "^3.0",
"topthink/think-tracing": "^1.0"
}, },
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "think": {
"dev-main": "1.27-dev" "services": [
}, "think\\swoole\\Service"
"thanks": { ],
"name": "symfony/polyfill", "config": {
"url": "https://github.com/symfony/polyfill" "swoole": "src/config/swoole.php"
}
} }
}, },
"autoload": { "autoload": {
"files": [ "files": [
"bootstrap.php" "src/helpers.php"
], ],
"psr-4": { "psr-4": {
"Symfony\\Polyfill\\Mbstring\\": "" "think\\swoole\\": "src"
} }
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
"license": [ "license": [
"MIT" "Apache-2.0"
], ],
"authors": [ "authors": [
{ {
"name": "Nicolas Grekas", "name": "liu21st",
"email": "p@tchwork.com" "email": "liu21st@gmail.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
} }
], ],
"description": "Symfony polyfill for the Mbstring extension", "description": "Swoole extend for thinkphp",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
"mbstring",
"polyfill",
"portable",
"shim"
],
"support": { "support": {
"source": "https://github.com/symfony/polyfill-mbstring/tree/v1.27.0" "issues": "https://github.com/top-think/think-swoole/issues",
"source": "https://github.com/top-think/think-swoole/tree/v4.0.9"
}, },
"funding": [ "time": "2023-03-09T07:52:09+00:00"
{ }
"url": "https://symfony.com/sponsor", ],
"type": "custom" "packages-dev": [
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2022-11-03T14:55:06+00:00"
},
{ {
"name": "symfony/polyfill-php72", "name": "symfony/polyfill-mbstring",
"version": "v1.27.0", "version": "v1.27.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-php72.git", "url": "https://github.com/symfony/polyfill-mbstring.git",
"reference": "869329b1e9894268a8a61dabb69153029b7a8c97" "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/869329b1e9894268a8a61dabb69153029b7a8c97", "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534",
"reference": "869329b1e9894268a8a61dabb69153029b7a8c97", "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.1" "php": ">=7.1"
}, },
"provide": {
"ext-mbstring": "*"
},
"suggest": {
"ext-mbstring": "For best performance"
},
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
@ -1774,7 +2190,7 @@
"bootstrap.php" "bootstrap.php"
], ],
"psr-4": { "psr-4": {
"Symfony\\Polyfill\\Php72\\": "" "Symfony\\Polyfill\\Mbstring\\": ""
} }
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
@ -1791,16 +2207,17 @@
"homepage": "https://symfony.com/contributors" "homepage": "https://symfony.com/contributors"
} }
], ],
"description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", "description": "Symfony polyfill for the Mbstring extension",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"keywords": [ "keywords": [
"compatibility", "compatibility",
"mbstring",
"polyfill", "polyfill",
"portable", "portable",
"shim" "shim"
], ],
"support": { "support": {
"source": "https://github.com/symfony/polyfill-php72/tree/v1.27.0" "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.27.0"
}, },
"funding": [ "funding": [
{ {
@ -1819,17 +2236,17 @@
"time": "2022-11-03T14:55:06+00:00" "time": "2022-11-03T14:55:06+00:00"
}, },
{ {
"name": "symfony/polyfill-php80", "name": "symfony/polyfill-php72",
"version": "v1.27.0", "version": "v1.27.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/polyfill-php80.git", "url": "https://github.com/symfony/polyfill-php72.git",
"reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936" "reference": "869329b1e9894268a8a61dabb69153029b7a8c97"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/869329b1e9894268a8a61dabb69153029b7a8c97",
"reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", "reference": "869329b1e9894268a8a61dabb69153029b7a8c97",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1850,21 +2267,14 @@
"bootstrap.php" "bootstrap.php"
], ],
"psr-4": { "psr-4": {
"Symfony\\Polyfill\\Php80\\": "" "Symfony\\Polyfill\\Php72\\": ""
}, }
"classmap": [
"Resources/stubs"
]
}, },
"notification-url": "https://packagist.org/downloads/", "notification-url": "https://packagist.org/downloads/",
"license": [ "license": [
"MIT" "MIT"
], ],
"authors": [ "authors": [
{
"name": "Ion Bazan",
"email": "ion.bazan@gmail.com"
},
{ {
"name": "Nicolas Grekas", "name": "Nicolas Grekas",
"email": "p@tchwork.com" "email": "p@tchwork.com"
@ -1874,7 +2284,7 @@
"homepage": "https://symfony.com/contributors" "homepage": "https://symfony.com/contributors"
} }
], ],
"description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"keywords": [ "keywords": [
"compatibility", "compatibility",
@ -1883,7 +2293,7 @@
"shim" "shim"
], ],
"support": { "support": {
"source": "https://github.com/symfony/polyfill-php80/tree/v1.27.0" "source": "https://github.com/symfony/polyfill-php72/tree/v1.27.0"
}, },
"funding": [ "funding": [
{ {

@ -0,0 +1,89 @@
<?php
return [
'http' => [
'enable' => true,
'host' => '0.0.0.0',
'port' => 9501,
// 'worker_num' => swoole_cpu_num(),
'worker_num' => 4,
'options' => [
'log_file' => env('runtime_path') . 'swoole.log',
],
],
'websocket' => [
'enable' => true,
'handler' => \think\swoole\websocket\Handler::class,
'ping_interval' => 25000,
'ping_timeout' => 60000,
'room' => [
'type' => 'table',
'table' => [
'room_rows' => 8192,
'room_size' => 2048,
'client_rows' => 4096,
'client_size' => 2048,
],
'redis' => [
'host' => '127.0.0.1',
'port' => 6379,
'max_active' => 3,
'max_wait_time' => 5,
],
],
'listen' => [],
'subscribe' => [],
],
'rpc' => [
'server' => [
'enable' => false,
'host' => '0.0.0.0',
'port' => 9000,
'worker_num' => swoole_cpu_num(),
'services' => [],
],
'client' => [],
],
//队列
'queue' => [
'enable' => false,
'workers' => [],
],
'hot_update' => [
'enable' => env('APP_DEBUG', false),
'name' => ['*.php'],
'include' => [app_path()],
'exclude' => [],
],
//连接池
'pool' => [
'db' => [
'enable' => true,
'max_active' => 3,
'max_wait_time' => 5,
],
'cache' => [
'enable' => true,
'max_active' => 3,
'max_wait_time' => 5,
],
//自定义连接池
],
'ipc' => [
'type' => 'unix_socket',
'redis' => [
'host' => '127.0.0.1',
'port' => 6379,
'max_active' => 3,
'max_wait_time' => 5,
],
],
'tables' => [],
//每个worker里需要预加载以共用的实例
'concretes' => [],
//重置器
'resetters' => [],
//每次请求前需要清空的实例
'instances' => [],
//每次请求前需要重新执行的服务
'services' => [],
];

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
.el-divider{position:relative}.el-divider--horizontal{display:block;height:1px;width:100%;margin:24px 0;border-top:1px var(--el-border-color) var(--el-border-style)}.el-divider--vertical{display:inline-block;width:1px;height:1em;margin:0 8px;vertical-align:middle;position:relative;border-left:1px var(--el-border-color) var(--el-border-style)}.el-divider__text{position:absolute;background-color:var(--el-bg-color);padding:0 20px;font-weight:500;color:var(--el-text-color-primary);font-size:14px}.el-divider__text.is-left{left:20px;transform:translateY(-50%)}.el-divider__text.is-center{left:50%;transform:translate(-50%) translateY(-50%)}.el-divider__text.is-right{right:20px;transform:translateY(-50%)}.el-page-header.is-contentful .el-page-header__main{border-top:1px solid var(--el-border-color-light);margin-top:16px}.el-page-header__header{display:flex;align-items:center;justify-content:space-between;line-height:24px}.el-page-header__left{display:flex;align-items:center;margin-right:40px;position:relative}.el-page-header__back{display:flex;align-items:center;cursor:pointer}.el-page-header__left .el-divider--vertical{margin:0 16px}.el-page-header__icon{font-size:16px;margin-right:10px;display:flex;align-items:center}.el-page-header__icon .el-icon{font-size:inherit}.el-page-header__title{font-size:14px;font-weight:500}.el-page-header__content{font-size:18px;color:var(--el-text-color-primary)}.el-page-header__breadcrumb{margin-bottom:16px}

@ -1 +0,0 @@
const s=(t,r)=>{const o=t.__vccOpts||t;for(const[c,e]of r)o[c]=e;return o};export{s as _};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 KiB

@ -1 +0,0 @@
import{m as n,v as p,y as t,w as m,e as c,o as l,Q as _,D as u}from"./index-b41ec9c7.js";import{z as v,E as d,c as h,a as f,_ as o}from"./vue-router-3575a990.js";/* empty css *//* empty css */import"./config-provider-956abc58.js";const E={__name:"App",setup(a){const e=n(v);return(s,B)=>{const i=_("router-view");return l(),p("div",null,[t(c(d),{locale:e.value},{default:m(()=>[t(i)]),_:1},8,["locale"])])}}};let w=h(),P=[{path:"/",name:"Bonus",redirect:"/list"},{path:"/list",name:"List",component:()=>o(()=>import("./index-291606b9.js"),["./index-291606b9.js","./axios-8d47023b.js","./index-b41ec9c7.js","./axios-3111e043.css","./el-radio-34353f57.js","./config-provider-956abc58.js","./el-button-b8dd108f.js","./el-button-2cb60ae5.css","./el-overlay-4e240995.js","./vnode-ad38ecbd.js","./el-table-column-b974b339.js","./el-input-5d111189.js","./el-input-eda68dc7.css","./el-table-column-6c7c84cf.css","./el-overlay-f6b2674f.css","./el-radio-90b91a79.css","./el-select-069acc96.js","./strings-bd379ff7.js","./el-select-c3d1a4bc.css","./el-breadcrumb-item-76a885a8.js","./el-breadcrumb-item-a5da584b.css","./el-form-item-41289c89.js","./el-form-item-d10bb01f.css","./bonus-ddff7889.js","./request-4eebca59.js","./index-5a9f1791.js","./vue-router-3575a990.js","./el-dialog-7b283d94.js","./el-dialog-e409f358.css","./_plugin-vue_export-helper-c27b6911.js","./index-f20df857.css","./el-message-f448e6ff.css"],import.meta.url)},{path:"/uselist",name:"UseList",component:()=>o(()=>import("./UseList-61a9877a.js"),["./UseList-61a9877a.js","./axios-8d47023b.js","./index-b41ec9c7.js","./axios-3111e043.css","./el-dialog-7b283d94.js","./el-overlay-4e240995.js","./vnode-ad38ecbd.js","./el-button-b8dd108f.js","./config-provider-956abc58.js","./el-button-2cb60ae5.css","./el-table-column-b974b339.js","./el-input-5d111189.js","./el-input-eda68dc7.css","./el-table-column-6c7c84cf.css","./el-overlay-f6b2674f.css","./el-dialog-e409f358.css","./el-select-069acc96.js","./strings-bd379ff7.js","./el-select-c3d1a4bc.css","./el-breadcrumb-item-76a885a8.js","./el-breadcrumb-item-a5da584b.css","./vue-router-3575a990.js","./bonus-ddff7889.js","./request-4eebca59.js","./UseList-fff52ac9.css"],import.meta.url)}];const A=f({history:w,routes:P,scrollBehavior(a,e,s){return{top:0}}}),r=u(E);r.use(A);r.mount("#app");

@ -1 +0,0 @@
import{r as n}from"./request-4eebca59.js";function u(s){return n("/bonus/getBonusList","post",s)}function e(s){return n("/bonus/getBonus","post",{type_id:s})}function o(s){return n("/bonus/addBonus","post",s)}function r(s){return n("/bonus/updateBonus","post",s)}function i(s){return n("/bonus/deleteBonus","get",{id:s})}function a(s){return n("/bonus/getUseBonusList","post",s)}function B(s){return n("/bonus/deleteUseBonus","get",{id:s})}function d(s){return n("/bonus/send","post",s)}function f(s){return n("/bonus/getUseList","post",s)}export{o as a,u as b,a as c,i as d,B as e,f,e as g,d as s,r as u};

@ -1 +0,0 @@
.default-button-style{background:#2979ff;border-color:#2979ff}.default-button-style :hover{background:#66b1ff;border-color:#66b1ff}.main{padding:10px;background-color:#fff}.main .breadcrumb-section{margin:0 0 10px;padding:10px;line-height:1.2;font-weight:500}.main .breadcrumb-section :deep(.el-breadcrumb){font-size:16px;color:#606266}.main .breadcrumb-section :deep(.el-breadcrumb) .el-breadcrumb__inner{display:inline-block;vertical-align:middle}.main .breadcrumb-section :deep(.el-breadcrumb) .el-breadcrumb__inner .el-breadcrumb__separator{color:#c0c4cc}.breadcrumb-section{display:flex}.breadcrumb-section div:nth-child(1){flex:1}.breadcrumb-section div:nth-child(2){width:300px;text-align:right}.pagination-block{margin:10px 0 0}.el-drawer__header{margin-bottom:0!important}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
import{b as f,d as c,u as _,m as k,p as C,s as E,o as s,v as u,r as y,n as t,e as r,i as w,j as P,t as S,x as $,a as d,w as x,g as j,A,O as N,h as D,a8 as K}from"./index-b41ec9c7.js";import{i as O,_ as B,E as T}from"./axios-8d47023b.js";const g=Symbol("breadcrumbKey"),q=f({separator:{type:String,default:"/"},separatorIcon:{type:O}}),z=c({name:"ElBreadcrumb"}),M=c({...z,props:q,setup(l){const a=l,o=_("breadcrumb"),n=k();return C(g,a),E(()=>{const e=n.value.querySelectorAll(`.${o.e("item")}`);e.length&&e[e.length-1].setAttribute("aria-current","page")}),(e,m)=>(s(),u("div",{ref_key:"breadcrumb",ref:n,class:t(r(o).b()),"aria-label":"Breadcrumb",role:"navigation"},[y(e.$slots,"default")],2))}});var R=B(M,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const V=f({to:{type:w([String,Object]),default:""},replace:{type:Boolean,default:!1}}),F=c({name:"ElBreadcrumbItem"}),G=c({...F,props:V,setup(l){const a=l,o=N(),n=P(g,void 0),e=_("breadcrumb"),{separator:m,separatorIcon:i}=S(n),p=o.appContext.config.globalProperties.$router,v=k(),I=()=>{!a.to||!p||(a.replace?p.replace(a.to):p.push(a.to))};return(b,H)=>(s(),u("span",{class:t(r(e).e("item"))},[$("span",{ref_key:"link",ref:v,class:t([r(e).e("inner"),r(e).is("link",!!b.to)]),role:"link",onClick:I},[y(b.$slots,"default")],2),r(i)?(s(),d(r(T),{key:0,class:t(r(e).e("separator"))},{default:x(()=>[(s(),d(j(r(i))))]),_:1},8,["class"])):(s(),u("span",{key:1,class:t(r(e).e("separator")),role:"presentation"},A(r(m)),3))],2))}});var h=B(G,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const Q=D(R,{BreadcrumbItem:h}),U=K(h);export{Q as E,U as a};

@ -1 +0,0 @@
.el-breadcrumb{font-size:14px;line-height:1}.el-breadcrumb:after,.el-breadcrumb:before{display:table;content:""}.el-breadcrumb:after{clear:both}.el-breadcrumb__separator{margin:0 9px;font-weight:700;color:var(--el-text-color-placeholder)}.el-breadcrumb__separator.el-icon{margin:0 6px;font-weight:400}.el-breadcrumb__separator.el-icon svg{vertical-align:middle}.el-breadcrumb__item{float:left;display:inline-flex;align-items:center}.el-breadcrumb__inner{color:var(--el-text-color-regular)}.el-breadcrumb__inner a,.el-breadcrumb__inner.is-link{font-weight:700;text-decoration:none;transition:var(--el-transition-color);color:var(--el-text-color-primary)}.el-breadcrumb__inner a:hover,.el-breadcrumb__inner.is-link:hover{color:var(--el-color-primary);cursor:pointer}.el-breadcrumb__item:last-child .el-breadcrumb__inner,.el-breadcrumb__item:last-child .el-breadcrumb__inner a,.el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover,.el-breadcrumb__item:last-child .el-breadcrumb__inner:hover{font-weight:400;color:var(--el-text-color-regular);cursor:text}.el-breadcrumb__item:last-child .el-breadcrumb__separator{display:none}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:.5}.v-modal-enter{-webkit-animation:v-modal-in var(--el-transition-duration-fast) ease;animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{-webkit-animation:v-modal-out var(--el-transition-duration-fast) ease forwards;animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@-webkit-keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-in{0%{opacity:0}}@-webkit-keyframes v-modal-out{to{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:var(--el-popup-modal-opacity);background:var(--el-popup-modal-bg-color)}.el-popup-parent--hidden{overflow:hidden}.el-dialog{--el-dialog-width:50%;--el-dialog-margin-top:15vh;--el-dialog-bg-color:var(--el-bg-color);--el-dialog-box-shadow:var(--el-box-shadow);--el-dialog-title-font-size:var(--el-font-size-large);--el-dialog-content-font-size:14px;--el-dialog-font-line-height:var(--el-font-line-height-primary);--el-dialog-padding-primary:20px;--el-dialog-border-radius:var(--el-border-radius-small);position:relative;margin:var(--el-dialog-margin-top,15vh) auto 50px;background:var(--el-dialog-bg-color);border-radius:var(--el-dialog-border-radius);box-shadow:var(--el-dialog-box-shadow);box-sizing:border-box;width:var(--el-dialog-width,50%)}.el-dialog:focus{outline:0!important}.el-dialog.is-align-center{margin:auto}.el-dialog.is-fullscreen{--el-dialog-width:100%;--el-dialog-margin-top:0;margin-bottom:0;height:100%;overflow:auto}.el-dialog__wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;margin:0}.el-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-dialog__header{padding:var(--el-dialog-padding-primary);padding-bottom:10px;margin-right:16px}.el-dialog__headerbtn{position:absolute;top:6px;right:0;padding:0;width:54px;height:54px;background:0 0;border:none;outline:0;cursor:pointer;font-size:var(--el-message-close-size,16px)}.el-dialog__headerbtn .el-dialog__close{color:var(--el-color-info);font-size:inherit}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:var(--el-color-primary)}.el-dialog__title{line-height:var(--el-dialog-font-line-height);font-size:var(--el-dialog-title-font-size);color:var(--el-text-color-primary)}.el-dialog__body{padding:calc(var(--el-dialog-padding-primary) + 10px) var(--el-dialog-padding-primary);color:var(--el-text-color-regular);font-size:var(--el-dialog-content-font-size)}.el-dialog__footer{padding:var(--el-dialog-padding-primary);padding-top:10px;text-align:right;box-sizing:border-box}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial;padding:25px calc(var(--el-dialog-padding-primary) + 5px) 30px}.el-dialog--center .el-dialog__footer{text-align:inherit}.el-overlay-dialog{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto}.dialog-fade-enter-active{-webkit-animation:modal-fade-in var(--el-transition-duration);animation:modal-fade-in var(--el-transition-duration)}.dialog-fade-enter-active .el-overlay-dialog{-webkit-animation:dialog-fade-in var(--el-transition-duration);animation:dialog-fade-in var(--el-transition-duration)}.dialog-fade-leave-active{-webkit-animation:modal-fade-out var(--el-transition-duration);animation:modal-fade-out var(--el-transition-duration)}.dialog-fade-leave-active .el-overlay-dialog{-webkit-animation:dialog-fade-out var(--el-transition-duration);animation:dialog-fade-out var(--el-transition-duration)}@-webkit-keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@-webkit-keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@-webkit-keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
.el-form{--el-form-label-font-size:var(--el-font-size-base)}.el-form--label-left .el-form-item__label{justify-content:flex-start}.el-form--label-top .el-form-item{display:block}.el-form--label-top .el-form-item .el-form-item__label{display:block;height:auto;text-align:left;margin-bottom:8px;line-height:22px}.el-form--inline .el-form-item{display:inline-flex;vertical-align:middle;margin-right:32px}.el-form--inline.el-form--label-top{display:flex;flex-wrap:wrap}.el-form--inline.el-form--label-top .el-form-item{display:block}.el-form--large.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:12px;line-height:22px}.el-form--default.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:8px;line-height:22px}.el-form--small.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:4px;line-height:20px}.el-form-item{display:flex;--font-size:14px;margin-bottom:18px}.el-form-item .el-form-item{margin-bottom:0}.el-form-item .el-input__validateIcon{display:none}.el-form-item--large{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:22px}.el-form-item--large .el-form-item__label{height:40px;line-height:40px}.el-form-item--large .el-form-item__content{line-height:40px}.el-form-item--large .el-form-item__error{padding-top:4px}.el-form-item--default{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--default .el-form-item__label{height:32px;line-height:32px}.el-form-item--default .el-form-item__content{line-height:32px}.el-form-item--default .el-form-item__error{padding-top:2px}.el-form-item--small{--font-size:12px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--small .el-form-item__label{height:24px;line-height:24px}.el-form-item--small .el-form-item__content{line-height:24px}.el-form-item--small .el-form-item__error{padding-top:2px}.el-form-item__label-wrap{display:flex}.el-form-item__label{display:inline-flex;justify-content:flex-end;align-items:flex-start;flex:0 0 auto;font-size:var(--el-form-label-font-size);color:var(--el-text-color-regular);height:32px;line-height:32px;padding:0 12px 0 0;box-sizing:border-box}.el-form-item__content{display:flex;flex-wrap:wrap;align-items:center;flex:1;line-height:32px;position:relative;font-size:var(--font-size);min-width:0}.el-form-item__content .el-input-group{vertical-align:top}.el-form-item__error{color:var(--el-color-danger);font-size:12px;line-height:1;padding-top:2px;position:absolute;top:100%;left:0}.el-form-item__error--inline{position:relative;top:auto;left:auto;display:inline-block;margin-left:10px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label-wrap>.el-form-item__label:before,.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label:before{content:"*";color:var(--el-color-danger);margin-right:4px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label-wrap>.el-form-item__label:after,.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label:after{content:"*";color:var(--el-color-danger);margin-left:4px}.el-form-item.is-error .el-select-v2__wrapper,.el-form-item.is-error .el-select-v2__wrapper:focus,.el-form-item.is-error .el-textarea__inner,.el-form-item.is-error .el-textarea__inner:focus{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input-group__append .el-input__wrapper,.el-form-item.is-error .el-input-group__prepend .el-input__wrapper{box-shadow:0 0 0 1px transparent inset}.el-form-item.is-error .el-input__validateIcon{color:var(--el-color-danger)}.el-form-item--feedback .el-input__validateIcon{display:inline-flex}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
.el-badge{--el-badge-bg-color:var(--el-color-danger);--el-badge-radius:10px;--el-badge-font-size:12px;--el-badge-padding:6px;--el-badge-size:18px;position:relative;vertical-align:middle;display:inline-block;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.el-badge__content{background-color:var(--el-badge-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);display:inline-flex;justify-content:center;align-items:center;font-size:var(--el-badge-font-size);height:var(--el-badge-size);padding:0 var(--el-badge-padding);white-space:nowrap;border:1px solid var(--el-bg-color)}.el-badge__content.is-fixed{position:absolute;top:0;right:calc(1px + var(--el-badge-size)/ 2);transform:translateY(-50%) translate(100%);z-index:var(--el-index-normal)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{height:8px;width:8px;padding:0;right:0;border-radius:50%}.el-badge__content--primary{background-color:var(--el-color-primary)}.el-badge__content--success{background-color:var(--el-color-success)}.el-badge__content--warning{background-color:var(--el-color-warning)}.el-badge__content--info{background-color:var(--el-color-info)}.el-badge__content--danger{background-color:var(--el-color-danger)}.el-message{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-border-color-lighter);--el-message-padding:15px 19px;--el-message-close-size:16px;--el-message-close-icon-color:var(--el-text-color-placeholder);--el-message-close-hover-color:var(--el-text-color-secondary)}.el-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;max-width:calc(100% - 32px);box-sizing:border-box;border-radius:var(--el-border-radius-base);border-width:var(--el-border-width);border-style:var(--el-border-style);border-color:var(--el-message-border-color);position:fixed;left:50%;top:20px;transform:translate(-50%);background-color:var(--el-message-bg-color);transition:opacity var(--el-transition-duration),transform .4s,top .4s;padding:var(--el-message-padding);display:flex;align-items:center}.el-message.is-center{justify-content:center}.el-message.is-closable .el-message__content{padding-right:31px}.el-message p{margin:0}.el-message--success{--el-message-bg-color:var(--el-color-success-light-9);--el-message-border-color:var(--el-color-success-light-8);--el-message-text-color:var(--el-color-success)}.el-message--success .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--success{color:var(--el-message-text-color)}.el-message--info{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-color-info-light-8);--el-message-text-color:var(--el-color-info)}.el-message--info .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--info{color:var(--el-message-text-color)}.el-message--warning{--el-message-bg-color:var(--el-color-warning-light-9);--el-message-border-color:var(--el-color-warning-light-8);--el-message-text-color:var(--el-color-warning)}.el-message--warning .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--warning{color:var(--el-message-text-color)}.el-message--error{--el-message-bg-color:var(--el-color-error-light-9);--el-message-border-color:var(--el-color-error-light-8);--el-message-text-color:var(--el-color-error)}.el-message--error .el-message__content{color:var(--el-message-text-color);overflow-wrap:anywhere}.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message__icon{margin-right:10px}.el-message .el-message__badge{position:absolute;top:-8px;right:-8px}.el-message__content{padding:0;font-size:14px;line-height:1}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{position:absolute;top:50%;right:19px;transform:translateY(-50%);cursor:pointer;color:var(--el-message-close-icon-color);font-size:var(--el-message-close-size)}.el-message .el-message__closeBtn:focus{outline-width:0}.el-message .el-message__closeBtn:hover{color:var(--el-message-close-hover-color)}.el-message-fade-enter-from,.el-message-fade-leave-to{opacity:0;transform:translate(-50%,-100%)}

@ -1 +0,0 @@
import{T as Z,u as D,at as j,_ as F,F as w,au as q,av as h,b as k,i as O,d as G,y as J,r as S,S as Q,K as X,m as v,c as M,E as R,s as ee,O as oe,W as te,al as T}from"./index-b41ec9c7.js";import{P as x}from"./vnode-ad38ecbd.js";import{s as P,w as le,x as ne,v as se,i as ae,b as ue}from"./axios-8d47023b.js";import{t as ce,U as N,g as I}from"./el-button-b8dd108f.js";import{d as ie,n as de}from"./config-provider-956abc58.js";import{h as re}from"./el-table-column-b974b339.js";const fe=(e,o={})=>{Z(e)||ce("[useLockscreen]","You need to pass a ref param to this function");const u=o.ns||D("popup"),t=j(()=>u.bm("parent","hidden"));if(!F||P(document.body,t.value))return;let c=0,a=!1,l="0";const d=()=>{setTimeout(()=>{se(document==null?void 0:document.body,t.value),a&&document&&(document.body.style.width=l)},200)};w(e,s=>{if(!s){d();return}a=!P(document.body,t.value),a&&(l=document.body.style.width),c=re(u.namespace.value);const f=document.documentElement.clientHeight<document.body.scrollHeight,r=le(document.body,"overflowY");c>0&&(f||r==="scroll")&&a&&(document.body.style.width=`calc(100% - ${c}px)`),ne(document.body,t.value)}),q(()=>d())},ye=e=>{if(!e)return{onClick:h,onMousedown:h,onMouseup:h};let o=!1,u=!1;return{onClick:l=>{o&&u&&e(l),o=u=!1},onMousedown:l=>{o=l.target===l.currentTarget},onMouseup:l=>{u=l.target===l.currentTarget}}},me=k({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:O([String,Array,Object])},zIndex:{type:O([String,Number])}}),ve={click:e=>e instanceof MouseEvent},pe="overlay";var Ce=G({name:"ElOverlay",props:me,emits:ve,setup(e,{slots:o,emit:u}){const t=D(pe),c=s=>{u("click",s)},{onClick:a,onMousedown:l,onMouseup:d}=ye(e.customMaskEvent?void 0:c);return()=>e.mask?J("div",{class:[t.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:a,onMousedown:l,onMouseup:d},[S(o,"default")],x.STYLE|x.CLASS|x.PROPS,["onClick","onMouseup","onMousedown"]):Q("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[S(o,"default")])}});const Be=Ce,be=k({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:ae},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),Ee={close:()=>!0},Se=k({...be,appendToBody:{type:Boolean,default:!1},beforeClose:{type:O(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),Me={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[N]:e=>X(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},Te=(e,o)=>{const t=oe().emit,{nextZIndex:c}=ie();let a="";const l=I(),d=I(),s=v(!1),f=v(!1),r=v(!1),p=v(e.zIndex||c());let y,m;const z=de("namespace",te),A=M(()=>{const n={},i=`--${z.value}-dialog`;return e.fullscreen||(e.top&&(n[`${i}-margin-top`]=e.top),e.width&&(n[`${i}-width`]=ue(e.width))),n}),L=M(()=>e.alignCenter?{display:"flex"}:{});function V(){t("opened")}function $(){t("closed"),t(N,!1),e.destroyOnClose&&(r.value=!1)}function H(){t("close")}function B(){m==null||m(),y==null||y(),e.openDelay&&e.openDelay>0?{stop:y}=T(()=>E(),e.openDelay):E()}function C(){y==null||y(),m==null||m(),e.closeDelay&&e.closeDelay>0?{stop:m}=T(()=>g(),e.closeDelay):g()}function b(){function n(i){i||(f.value=!0,s.value=!1)}e.beforeClose?e.beforeClose(n):C()}function W(){e.closeOnClickModal&&b()}function E(){F&&(s.value=!0)}function g(){s.value=!1}function Y(){t("openAutoFocus")}function _(){t("closeAutoFocus")}function U(n){var i;((i=n.detail)==null?void 0:i.focusReason)==="pointer"&&n.preventDefault()}e.lockScroll&&fe(s);function K(){e.closeOnPressEscape&&b()}return w(()=>e.modelValue,n=>{n?(f.value=!1,B(),r.value=!0,p.value=e.zIndex?p.value++:c(),R(()=>{t("open"),o.value&&(o.value.scrollTop=0)})):s.value&&C()}),w(()=>e.fullscreen,n=>{o.value&&(n?(a=o.value.style.transform,o.value.style.transform=""):o.value.style.transform=a)}),ee(()=>{e.modelValue&&(s.value=!0,r.value=!0,B())}),{afterEnter:V,afterLeave:$,beforeLeave:H,handleClose:b,onModalClick:W,close:C,doClose:g,onOpenAutoFocus:Y,onCloseAutoFocus:_,onCloseRequested:K,onFocusoutPrevented:U,titleId:l,bodyId:d,closed:f,style:A,overlayDialogStyle:L,rendered:r,visible:s,zIndex:p}};export{Be as E,ye as a,Me as b,Te as c,Se as d,be as e,Ee as f,fe as u};

@ -1 +0,0 @@
.el-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;height:100%;background-color:var(--el-overlay-color-lighter);overflow:auto}.el-overlay .el-overlay-root{height:0}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
.el-switch{--el-switch-on-color:var(--el-color-primary);--el-switch-off-color:var(--el-border-color)}.el-switch{display:inline-flex;align-items:center;position:relative;font-size:14px;line-height:20px;height:32px;vertical-align:middle}.el-switch.is-disabled .el-switch__core,.el-switch.is-disabled .el-switch__label{cursor:not-allowed}.el-switch__label{transition:var(--el-transition-duration-fast);height:20px;display:inline-block;font-size:14px;font-weight:500;cursor:pointer;vertical-align:middle;color:var(--el-text-color-primary)}.el-switch__label.is-active{color:var(--el-color-primary)}.el-switch__label--left{margin-right:10px}.el-switch__label--right{margin-left:10px}.el-switch__label *{line-height:1;font-size:14px;display:inline-block}.el-switch__label .el-icon{height:inherit}.el-switch__label .el-icon svg{vertical-align:middle}.el-switch__input{position:absolute;width:0;height:0;opacity:0;margin:0}.el-switch__input:focus-visible~.el-switch__core{outline:2px solid var(--el-switch-on-color);outline-offset:1px}.el-switch__core{display:inline-flex;position:relative;align-items:center;min-width:40px;height:20px;border:1px solid var(--el-switch-border-color,var(--el-switch-off-color));outline:0;border-radius:10px;box-sizing:border-box;background:var(--el-switch-off-color);cursor:pointer;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration)}.el-switch__core .el-switch__inner{width:100%;transition:all var(--el-transition-duration);height:16px;display:flex;justify-content:center;align-items:center;overflow:hidden;padding:0 4px 0 18px}.el-switch__core .el-switch__inner .is-icon,.el-switch__core .el-switch__inner .is-text{font-size:12px;color:var(--el-color-white);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-switch__core .el-switch__action{position:absolute;left:1px;border-radius:var(--el-border-radius-circle);transition:all var(--el-transition-duration);width:16px;height:16px;background-color:var(--el-color-white);display:flex;justify-content:center;align-items:center;color:var(--el-switch-off-color)}.el-switch.is-checked .el-switch__core{border-color:var(--el-switch-border-color,var(--el-switch-on-color));background-color:var(--el-switch-on-color)}.el-switch.is-checked .el-switch__core .el-switch__action{left:calc(100% - 17px);color:var(--el-switch-on-color)}.el-switch.is-checked .el-switch__core .el-switch__inner{padding:0 18px 0 4px}.el-switch.is-disabled{opacity:.6}.el-switch--wide .el-switch__label.el-switch__label--left span{left:10px}.el-switch--wide .el-switch__label.el-switch__label--right span{right:10px}.el-switch .label-fade-enter-from,.el-switch .label-fade-leave-active{opacity:0}.el-switch--large{font-size:14px;line-height:24px;height:40px}.el-switch--large .el-switch__label{height:24px;font-size:14px}.el-switch--large .el-switch__label *{font-size:14px}.el-switch--large .el-switch__core{min-width:50px;height:24px;border-radius:12px}.el-switch--large .el-switch__core .el-switch__inner{height:20px;padding:0 6px 0 22px}.el-switch--large .el-switch__core .el-switch__action{width:20px;height:20px}.el-switch--large.is-checked .el-switch__core .el-switch__action{left:calc(100% - 21px)}.el-switch--large.is-checked .el-switch__core .el-switch__inner{padding:0 22px 0 6px}.el-switch--small{font-size:12px;line-height:16px;height:24px}.el-switch--small .el-switch__label{height:16px;font-size:12px}.el-switch--small .el-switch__label *{font-size:12px}.el-switch--small .el-switch__core{min-width:30px;height:16px;border-radius:8px}.el-switch--small .el-switch__core .el-switch__inner{height:12px;padding:0 2px 0 14px}.el-switch--small .el-switch__core .el-switch__action{width:12px;height:12px}.el-switch--small.is-checked .el-switch__core .el-switch__action{left:calc(100% - 13px)}.el-switch--small.is-checked .el-switch__core .el-switch__inner{padding:0 14px 0 2px}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 166 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
import"./axios-8d47023b.js";import{E as $,a as q,b as H}from"./el-table-column-b974b339.js";import{E as M,a as D,b as F}from"./el-select-069acc96.js";import{E as O}from"./el-input-5d111189.js";import{E as P}from"./el-button-b8dd108f.js";import{E as R,a as j}from"./el-breadcrumb-item-76a885a8.js";import{g as v}from"./order-c7f2d62a.js";import{u as J,b as A}from"./vue-router-3575a990.js";import{_ as G}from"./_plugin-vue_export-helper-c27b6911.js";import{m as i,s as K,F as w,v as E,x as r,y as l,w as s,o as f,z as p,H as Q,I as W,a as X,J as Y,B as Z,C as ee}from"./index-b41ec9c7.js";import"./config-provider-956abc58.js";import"./strings-bd379ff7.js";import"./request-4eebca59.js";const x=m=>(Z("data-v-a7d69c39"),m=m(),ee(),m),ae={class:"main"},le={class:"breadcrumb-section"},te=x(()=>r("a",{href:"/"},"訂單列表",-1)),oe=x(()=>r("hr",null,null,-1)),se={class:"search-section"},ne=["innerHTML"],re={class:"pagination-block"},ue={__name:"index",setup(m){const z=A(),g=J(),V=[{label:"全部",value:""},{label:"未確認",value:"0"},{label:"已確認",value:"1"},{label:"已取消",value:"2"},{label:"無效",value:"3"},{value:"4",label:"退貨"},{value:"7",label:"完成"}],c=i([]),_=i(0),u=i(1),d=i(10),o=i({user_id:"",order_sn:"",consignee:"",status:"1"});g.query.user_id&&(o.value.user_id=g.query.user_id),K(async()=>{let t=await v({page:u.value,size:d.value,search:o.value});t.code===200&&(c.value=t.data.data,_.value=t.data.total)}),w(()=>u.value,async t=>{let a=await v({page:t,size:d.value,search:o.value});a.code===200&&(c.value=a.data.data,_.value=a.data.total)}),w(()=>d.value,async t=>{let a=await v({page:u.value,size:t,search:o.value});a.code===200&&(c.value=a.data.data,_.value=a.data.total)}),i("");const k=(t,a)=>{z.push({path:"/info",query:{order_id:a.order_id}})},C=async()=>{let t=await v({page:u.value,size:d.value,search:o.value});t.code===200&&(c.value=t.data.data,_.value=t.data.total)};return(t,a)=>{const h=j,B=R,y=O,I=F,S=M,b=P,n=q,T=H,U=D,L=$;return f(),E("div",ae,[r("div",le,[l(B,{separator:"/"},{default:s(()=>[l(h,{to:{path:"/"}},{default:s(()=>[p("電商管理中心")]),_:1}),l(h,null,{default:s(()=>[te]),_:1})]),_:1})]),oe,l(L,null,{default:s(()=>[r("div",se,[p(" 訂單號:"),l(y,{modelValue:o.value.order_sn,"onUpdate:modelValue":a[0]||(a[0]=e=>o.value.order_sn=e),placeholder:"",style:{width:"200px"}},null,8,["modelValue"]),p(" 收貨人:"),l(y,{modelValue:o.value.consignee,"onUpdate:modelValue":a[1]||(a[1]=e=>o.value.consignee=e),placeholder:"",style:{width:"200px"}},null,8,["modelValue"]),l(S,{modelValue:o.value.status,"onUpdate:modelValue":a[2]||(a[2]=e=>o.value.status=e),class:"m-2",placeholder:"選擇狀態"},{default:s(()=>[(f(),E(Q,null,W(V,e=>l(I,{label:e.label,key:e.value,value:e.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),l(b,{type:"primary",onClick:C},{default:s(()=>[p("查詢")]),_:1})]),r("div",null,[l(T,{data:c.value,style:{width:"100%"}},{default:s(()=>[l(n,{prop:"order_sn",label:"訂單號"}),l(n,{prop:"add_time",label:"下單時間"}),l(n,{prop:"consignee",label:"收貨人"}),l(n,{prop:"total_fee",label:"訂單金額",width:"100"}),l(n,{prop:"pay_name",label:"金流方式"}),l(n,{prop:"shipping_name",label:"物流方式"}),l(n,{label:"訂單狀態",width:"200"},{default:s(e=>[r("div",{innerHTML:e.row.status},null,8,ne)]),_:1}),l(n,{fixed:"right",label:"操作",width:"150"},{default:s(e=>[l(b,{size:"small",onClick:N=>k(e.$index,e.row)},{default:s(()=>[p("查看")]),_:2},1032,["onClick"]),e.row.order_status===3?(f(),X(b,{key:0,size:"small",type:"danger",onClick:N=>t.handleDelete(e.$index,e.row)},{default:s(()=>[p("刪除")]),_:2},1032,["onClick"])):Y("",!0)]),_:1})]),_:1},8,["data"]),r("div",re,[l(U,{"current-page":u.value,"onUpdate:currentPage":a[3]||(a[3]=e=>u.value=e),"page-size":d.value,"onUpdate:pageSize":a[4]||(a[4]=e=>d.value=e),"page-sizes":[10,20,50,100],small:"small",layout:"->,total, sizes, prev, pager, next, jumper",total:_.value},null,8,["current-page","page-size","total"])])])]),_:1})])}}},Ee=G(ue,[["__scopeId","data-v-a7d69c39"]]);export{Ee as default};

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
.search-section[data-v-a7d69c39]{background-color:#f3f3f3;border:1px solid #d7d7d7;padding:5px;color:gray;margin:0 0 10px}.pagination-block[data-v-a7d69c39]{margin:10px 0 0}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
import{m as _,E as I,v as V,x as v,y as n,w as p,o as E,z as w,B as U,C as B,D as b}from"./index-b41ec9c7.js";import{a as F}from"./axios-8d47023b.js";import{E as A,a as R}from"./el-form-item-41289c89.js";import{E as j}from"./el-button-b8dd108f.js";import{E as D,a as S}from"./el-input-5d111189.js";import{_ as z}from"./_plugin-vue_export-helper-c27b6911.js";import{E as g}from"./index-5a9f1791.js";import"./config-provider-956abc58.js";/*! js-cookie v3.0.5 | MIT */function h(o){for(var l=1;l<arguments.length;l++){var u=arguments[l];for(var f in u)o[f]=u[f]}return o}var M={read:function(o){return o[0]==='"'&&(o=o.slice(1,-1)),o.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(o){return encodeURIComponent(o).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function x(o,l){function u(t,i,e){if(!(typeof document>"u")){e=h({},l,e),typeof e.expires=="number"&&(e.expires=new Date(Date.now()+e.expires*864e5)),e.expires&&(e.expires=e.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var r in e)e[r]&&(c+="; "+r,e[r]!==!0&&(c+="="+e[r].split(";")[0]));return document.cookie=t+"="+o.write(i,t)+c}}function f(t){if(!(typeof document>"u"||arguments.length&&!t)){for(var i=document.cookie?document.cookie.split("; "):[],e={},c=0;c<i.length;c++){var r=i[c].split("="),a=r.slice(1).join("=");try{var d=decodeURIComponent(r[0]);if(e[d]=o.read(a,d),t===d)break}catch{}}return t?e[t]:e}}return Object.create({set:u,get:f,remove:function(t,i){u(t,"",h({},i,{expires:-1}))},withAttributes:function(t){return x(this.converter,h({},this.attributes,t))},withConverter:function(t){return x(h({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(l)},converter:{value:Object.freeze(o)}})}var T=x(M,{path:"/"});const O=o=>(U("data-v-5c2539af"),o=o(),B(),o),q={class:"login-page"},$={class:"login-box"},H=O(()=>v("div",{class:"login-logo"},"電商後台",-1)),K={class:"card"},P={class:"card-body login-card-body"},G=["src","onclick"],J={__name:"index",setup(o){const l=_(null),u=_(null);I(()=>{l.value.focus()});const f=_(null),t=_("index.php?act=captcha&"+Math.random()),i=()=>{e.value.captcha=e.value.captcha.toUpperCase()},e=_({username:"",password:"",captcha:"",remember:!1}),c=async r=>{r&&await r.validate(async(a,d)=>{if(a){let s=await F.post("privilege.php?act=signin",e.value);if(s.data.code!="200"){switch(t.value="index.php?act=captcha&"+Math.random(),g("登入失敗"),s.data.code){case"501":e.value.captcha="";break;default:e.value.username="",e.value.password="",e.value.captcha="",l.value.focus()}return}g("登入成功"),T.set("Authorization","Bearer "+s.data.token),window.location.href="index.php"}else return g("登入失敗"),!1})};return(r,a)=>{const d=D,s=R,C=S,k=j,y=A;return E(),V("div",q,[v("div",$,[H,v("div",K,[v("div",P,[n(y,{ref_key:"ruleFormRef",ref:u,model:e.value,"status-icon":"",rules:r.rules,class:"demo-ruleForm"},{default:p(()=>[n(s,{prop:"username",rules:[{required:!0,message:"帳號必填",trigger:"blur"}]},{default:p(()=>[n(d,{modelValue:e.value.username,"onUpdate:modelValue":a[0]||(a[0]=m=>e.value.username=m),autocomplete:"off",placeholder:"請輸入帳號",ref_key:"ifocus",ref:l},null,8,["modelValue"])]),_:1}),n(s,{prop:"password",rules:[{required:!0,message:"密碼必填",trigger:"blur"}]},{default:p(()=>[n(d,{modelValue:e.value.password,"onUpdate:modelValue":a[1]||(a[1]=m=>e.value.password=m),type:"password",autocomplete:"off",placeholder:"請輸入密碼"},null,8,["modelValue"])]),_:1}),n(s,null,{default:p(()=>[n(d,{modelValue:e.value.captcha,"onUpdate:modelValue":a[2]||(a[2]=m=>e.value.captcha=m),placeholder:"請輸入驗證碼",onKeyup:i},{append:p(()=>[v("img",{src:t.value,alt:"CAPTCHA",style:{cursor:"pointer"},title:"點擊換一張",ref_key:"captchaImg",ref:f,onclick:`this.src='index.php?act=captcha&${Math.random()}'`},null,8,G)]),_:1},8,["modelValue"])]),_:1}),n(s,null,{default:p(()=>[n(C,{modelValue:e.value.remember,"onUpdate:modelValue":a[3]||(a[3]=m=>e.value.remember=m)},{default:p(()=>[w("記住登入")]),_:1},8,["modelValue"])]),_:1}),n(s,null,{default:p(()=>[n(k,{type:"primary",block:"",onClick:a[4]||(a[4]=m=>c(u.value))},{default:p(()=>[w("登入")]),_:1})]),_:1})]),_:1},8,["model","rules"])])])])])}}},L=z(J,[["__scopeId","data-v-5c2539af"]]);b(L).mount("#app");

@ -1 +0,0 @@
.captcha-field[data-v-5c2539af]{height:50px}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

@ -1 +0,0 @@
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0;padding:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}

@ -1 +0,0 @@
body{font-size:14px}.main{padding:10px;background-color:#fff}.main .breadcrumb-section{margin:0 0 10px;padding:10px;line-height:1.2;font-weight:500}.main .breadcrumb-section :deep(.el-breadcrumb){font-size:16px;color:#606266}.main .breadcrumb-section :deep(.el-breadcrumb) .el-breadcrumb__inner{display:inline-block;vertical-align:middle}.main .breadcrumb-section :deep(.el-breadcrumb) .el-breadcrumb__inner .el-breadcrumb__separator{color:#c0c4cc}.breadcrumb-section{display:flex}.breadcrumb-section div:nth-child(1){flex:1}.breadcrumb-section div:nth-child(2){width:300px;text-align:right}.el-card__header{padding:10px 20px!important;background-color:#f5f7fa;border-bottom:1px solid #e4e7ed;color:#606266}.el-card__body{color:#909399}

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
import{r as t}from"./request-4eebca59.js";function n(r){return t("/order/list","post",r)}function o(r){return t("/order/getCardInfo","get",{sn:r})}function d(r){return t("/order/getOrderInfo","get",{id:r})}function u(r){return t("/order/getOrderAction","get",{id:r})}function a(r){return t("/order/updateOrder","post",r)}function i(r){return t("/order/updateOrderAction","post",r)}export{d as a,u as b,o as c,a as d,n as g,i as u};

@ -1 +0,0 @@
import{r as b,_ as h,a as f,o as w,c as v,b as _,d as e,w as a,E as y,e as E,f as k,g as s,p as x,h as B,i as C,j as g,k as I,l as $}from"./common-669e8730.js";function N(t){return b("/payment/list","get")}const r=t=>(x("data-v-8c9b7a3c"),t=t(),B(),t),S={class:"main"},T={class:"breadcrumb"},V=r(()=>_("a",{href:"/"},"支付方式",-1)),z=r(()=>_("hr",null,null,-1)),A={__name:"index",setup(t){const c=f([]);return w(async()=>{let o=await N();c.value=o.data}),(o,j)=>{const d=C,i=y,l=g,p=I,u=E;return k(),v("div",S,[_("div",T,[e(i,{separator:"/"},{default:a(()=>[e(d,{to:{path:"/"}},{default:a(()=>[s("電商管理中心")]),_:1}),e(d,null,{default:a(()=>[V]),_:1})]),_:1})]),z,e(u,{data:c.value,style:{width:"100%"}},{default:a(()=>[e(l,{prop:"pay_name",label:"支付方式",width:"180"}),e(l,{prop:"pay_desc",label:"支付顯示名稱",width:"180"}),e(l,{prop:"pay_code",label:"支付代碼",width:"180"}),e(l,{prop:"pay_fee",label:"手續費"}),e(l,{label:"操作",width:"150"},{default:a(n=>[e(p,{size:"small",onClick:m=>o.handleEdit(n.$index,n.row)},{default:a(()=>[s("編輯")]),_:2},1032,["onClick"]),e(p,{size:"small",type:"danger",onClick:m=>o.handleDelete(n.$index,n.row)},{default:a(()=>[s("刪除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])])}}},D=h(A,[["__scopeId","data-v-8c9b7a3c"]]);$(D).mount("#app");

@ -1 +0,0 @@
.main[data-v-900d3610]{background-color:#fff}.main .breadcrumb[data-v-900d3610]{margin:0 0 10px;padding:10px;line-height:1.2;font-weight:500}.main .breadcrumb[data-v-900d3610] .el-breadcrumb{font-size:16px;color:#606266}.main .breadcrumb[data-v-900d3610] .el-breadcrumb .el-breadcrumb__inner{display:inline-block;vertical-align:middle}.main .breadcrumb[data-v-900d3610] .el-breadcrumb .el-breadcrumb__inner .el-breadcrumb__separator{color:#c0c4cc}.action-icon[data-v-900d3610]{font-size:24px}

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
.main[data-v-8c9b7a3c]{background-color:#fff}.main .breadcrumb[data-v-8c9b7a3c]{margin:0 0 10px;padding:10px;line-height:1.2;font-weight:500}.main .breadcrumb[data-v-8c9b7a3c] .el-breadcrumb{font-size:16px;color:#606266}.main .breadcrumb[data-v-8c9b7a3c] .el-breadcrumb .el-breadcrumb__inner{display:inline-block;vertical-align:middle}.main .breadcrumb[data-v-8c9b7a3c] .el-breadcrumb .el-breadcrumb__inner .el-breadcrumb__separator{color:#c0c4cc}

@ -1 +0,0 @@
import"./axios-8d47023b.js";import{E as x}from"./el-button-b8dd108f.js";import{Q as E,_ as T,a as B,b as z,E as N}from"./qrcode.vue.esm-6b752d95.js";import{m as s,s as D,v as M,x as e,y as t,w as c,G as r,Y as m,A as p,a as O,H as S,a3 as U,o as v,z as f}from"./index-b41ec9c7.js";import{c as F,d as I}from"./order-c7f2d62a.js";import"./config-provider-956abc58.js";import"./strings-bd379ff7.js";import"./vnode-ad38ecbd.js";import"./request-4eebca59.js";const L={id:"printMe"},P={class:"card-preview"},Q=e("img",{src:T},null,-1),j={class:"front"},A={class:"front-cname"},G={class:"front-ename"},H=["src"],R={class:"card-preview"},Y=e("img",{src:B},null,-1),q={class:"back"},J={class:"nfcimg"},K={class:"action"},ce={__name:"printcard",setup(W){let h=location.href,i=new URL(h).searchParams.get("sn");const n=s(0),l=s("front"),a=s({cname:"",ename:"",images:"",user_id:""}),g=s(100);D(async()=>{let o=await F(i);console.log("res",o),o.code===200&&(a.value=o.data)});const b=()=>{l.value==="front"?n.value=1:n.value=0},w=s({id:"printMe",popTitle:"card print",beforeOpenCallback(o){console.log("打開之前")},openCallback(o){console.log("執行了打印")},closeCallback(o){console.log("關閉了打印工具")}}),k=async()=>{(await I({order_sn:i,order_status:3})).code===200&&(console.log("window close"),window.location.href="about:blank",window.close())};return(o,d)=>{const _=N,y=z,u=x,C=U("print");return v(),M(S,null,[e("div",null,[t(y,{modelValue:l.value,"onUpdate:modelValue":d[0]||(d[0]=V=>l.value=V),type:"card",onTabClick:b},{default:c(()=>[t(_,{label:"正面",name:"front"}),t(_,{label:"反面",name:"back"})]),_:1},8,["modelValue"]),e("div",L,[r(e("div",P,[Q,e("div",j,[e("div",A,p(a.value.cname),1),e("div",G,p(a.value.ename),1),e("img",{class:"front-logo",src:a.value.image},null,8,H)])],512),[[m,n.value===0]]),r(e("div",R,[Y,e("div",q,[e("div",J,[t(E,{value:a.value.nfcurl,size:g.value,level:"L"},null,8,["value","size"])])])],512),[[m,n.value===1]])])]),e("div",K,[r((v(),O(u,{type:"primary"},{default:c(()=>[f("製卡")]),_:1})),[[C,w.value]]),t(u,{type:"success",onClick:k},{default:c(()=>[f("完成")]),_:1})])],64)}}};export{ce as default};

@ -1 +0,0 @@
ul li{list-style-type:none}.nav{display:flex}.nav .nav-item{margin-right:10px}.card-preview{width:345px;height:220px;margin:0;position:relative}.card-preview img{width:100%;height:100%;position:absolute;top:0;left:0}.card-preview .front{width:100%;height:100%;position:absolute}.card-preview .front .front-logo{position:absolute;width:100px;height:100px;top:55px;left:20px}.card-preview .front .front-cname{position:absolute;top:70px;left:180px;font-size:20px;letter-spacing:5px}.card-preview .front .front-ename{position:absolute;top:110px;left:180px;font-size:16px;letter-spacing:5px}.card-preview .back{width:100%;height:100%;position:absolute;display:flex;align-items:center;justify-content:center}.card-preview .back .nfcimg{width:100px;height:100px}@page{size:1022px 652px;margin:0}@media print{#printMe{-webkit-print-color-adjust:exact!important;color-adjust:exact!important}.card-preview{width:1021px;height:651px;margin:0;position:relative}.card-preview img{width:100%;height:100%;position:absolute;top:0;left:0}.card-preview .front{width:100%;height:100%;position:absolute}.card-preview .front .front-logo{position:absolute;width:300px;height:300px;top:150px;left:80px}.card-preview .front .front-cname{position:absolute;top:190px;left:550px;font-size:80px;letter-spacing:5px}.card-preview .front .front-ename{position:absolute;top:320px;left:559px;font-size:60px;letter-spacing:5px}.card-preview .back{width:100%;height:100%;position:absolute;display:flex;align-items:center;justify-content:center}.card-preview .back .nfcimg{width:100px;height:100px}}.action{margin-top:10px}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
import{a as n}from"./axios-8d47023b.js";const t=n.create({baseURL:"https://shop.slash1000.com/adminapi/v1",withCredentials:!0,timeout:5e3}),i=(e,s="GET",r={},a={})=>{switch(s=s.toUpperCase(),s){case"GET":return t.get(e,{params:r,...a});case"POST":return t.post(e,r,a);default:return t.get(e,{params:r,...a})}};t.interceptors.request.use(e=>e,e=>Promise.reject(e));t.interceptors.response.use(e=>e.data,e=>{if(e.response)switch(e.response.status){}return Promise.reject(e)});export{i as r};

@ -1 +0,0 @@
.main[data-v-36a32113]{background-color:#fff}.main .breadcrumb[data-v-36a32113]{margin:0 0 10px;padding:10px;line-height:1.2;font-weight:500}.main .breadcrumb[data-v-36a32113] .el-breadcrumb{font-size:16px;color:#606266}.main .breadcrumb[data-v-36a32113] .el-breadcrumb .el-breadcrumb__inner{display:inline-block;vertical-align:middle}.main .breadcrumb[data-v-36a32113] .el-breadcrumb .el-breadcrumb__inner .el-breadcrumb__separator{color:#c0c4cc}.action-icon[data-v-36a32113]{font-size:24px}

@ -1 +0,0 @@
.main[data-v-702df40c]{background-color:#fff}.main .breadcrumb[data-v-702df40c]{margin:0 0 10px;padding:10px;line-height:1.2;font-weight:500}.main .breadcrumb[data-v-702df40c] .el-breadcrumb{font-size:16px;color:#606266}.main .breadcrumb[data-v-702df40c] .el-breadcrumb .el-breadcrumb__inner{display:inline-block;vertical-align:middle}.main .breadcrumb[data-v-702df40c] .el-breadcrumb .el-breadcrumb__inner .el-breadcrumb__separator{color:#c0c4cc}

File diff suppressed because one or more lines are too long

@ -1 +0,0 @@
import{r as m,_ as b,a as f,o as w,c as g,b as _,d as e,w as t,E as v,e as E,f as k,g as s,p as x,h as B,i as C,j as y,k as I,l as $}from"./common-669e8730.js";function N(a){return m("/shipping/list","get")}const p=a=>(x("data-v-702df40c"),a=a(),B(),a),S={class:"main"},T={class:"breadcrumb"},V=p(()=>_("a",{href:"/"},"物流方式",-1)),z=p(()=>_("hr",null,null,-1)),A={__name:"index",setup(a){const d=f([]);return w(async()=>{let n=await N();d.value=n.data}),(n,j)=>{const c=C,r=v,l=y,i=I,u=E;return k(),g("div",S,[_("div",T,[e(r,{separator:"/"},{default:t(()=>[e(c,{to:{path:"/"}},{default:t(()=>[s("電商管理中心")]),_:1}),e(c,null,{default:t(()=>[V]),_:1})]),_:1})]),z,e(u,{data:d.value,style:{width:"100%"}},{default:t(()=>[e(l,{prop:"shipping_name",label:"物流方式",width:"180"}),e(l,{prop:"shipping_desc",label:"物流顯示名稱",width:"180"}),e(l,{prop:"shipping_code",label:"物流代碼",width:"180"}),e(l,{prop:"shipping_fee",label:"手續費"}),e(l,{label:"操作",width:"150"},{default:t(o=>[e(i,{size:"small",onClick:h=>n.handleEdit(o.$index,o.row)},{default:t(()=>[s("編輯")]),_:2},1032,["onClick"]),e(i,{size:"small",type:"danger",onClick:h=>n.handleDelete(o.$index,o.row)},{default:t(()=>[s("刪除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])])}}},D=b(A,[["__scopeId","data-v-702df40c"]]);$(D).mount("#app");

@ -1 +0,0 @@
import{aG as a}from"./index-b41ec9c7.js";const p=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),t=e=>a(e);export{t as c,p as e};

@ -1 +0,0 @@
import{$ as r,H as o,aC as u,aa as n}from"./index-b41ec9c7.js";var _=(E=>(E[E.TEXT=1]="TEXT",E[E.CLASS=2]="CLASS",E[E.STYLE=4]="STYLE",E[E.PROPS=8]="PROPS",E[E.FULL_PROPS=16]="FULL_PROPS",E[E.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",E[E.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",E[E.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",E[E.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",E[E.NEED_PATCH=512]="NEED_PATCH",E[E.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",E[E.HOISTED=-1]="HOISTED",E[E.BAIL=-2]="BAIL",E))(_||{});function L(E){return r(E)&&E.type===o}function D(E){return r(E)&&E.type===u}function m(E){return r(E)&&!L(E)&&!D(E)}const S=E=>{const N=n(E)?E:[E],T=[];return N.forEach(e=>{var A;n(e)?T.push(...S(e)):r(e)&&n(e.children)?T.push(...S(e.children)):(T.push(e),r(e)&&((A=e.component)!=null&&A.subTree)&&T.push(...S(e.component.subTree)))}),T};export{_ as P,m as a,S as f,L as i};

File diff suppressed because one or more lines are too long

@ -9,10 +9,17 @@
rel="stylesheet" rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback"
/> />
<<<<<<< HEAD
<script type="module" crossorigin src="./assets/order-7e0e7f83.js"></script> <script type="module" crossorigin src="./assets/order-7e0e7f83.js"></script>
<link rel="modulepreload" crossorigin href="./assets/index-b41ec9c7.js"> <link rel="modulepreload" crossorigin href="./assets/index-b41ec9c7.js">
<link rel="modulepreload" crossorigin href="./assets/config-provider-956abc58.js"> <link rel="modulepreload" crossorigin href="./assets/config-provider-956abc58.js">
<link rel="modulepreload" crossorigin href="./assets/vue-router-3575a990.js"> <link rel="modulepreload" crossorigin href="./assets/vue-router-3575a990.js">
=======
<script type="module" crossorigin src="./assets/order-d958f0a1.js"></script>
<link rel="modulepreload" crossorigin href="./assets/index-7f5d592d.js">
<link rel="modulepreload" crossorigin href="./assets/config-provider-c47d9507.js">
<link rel="modulepreload" crossorigin href="./assets/vue-router-b1aa7e74.js">
>>>>>>> h888
<link rel="stylesheet" href="./assets/order-62ce5b84.css"> <link rel="stylesheet" href="./assets/order-62ce5b84.css">
<link rel="stylesheet" href="./assets/normalize-a99f45e8.css"> <link rel="stylesheet" href="./assets/normalize-a99f45e8.css">
</head> </head>

@ -10,6 +10,7 @@
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700&display=fallback"
/> />
<link href="https://dev.iconly.io/public/x2OLQFwf8Nev/iconly.css" rel="stylesheet"/> <link href="https://dev.iconly.io/public/x2OLQFwf8Nev/iconly.css" rel="stylesheet"/>
<<<<<<< HEAD
<script type="module" crossorigin src="./assets/shipping-e6c28f88.js"></script> <script type="module" crossorigin src="./assets/shipping-e6c28f88.js"></script>
<link rel="modulepreload" crossorigin href="./assets/index-b41ec9c7.js"> <link rel="modulepreload" crossorigin href="./assets/index-b41ec9c7.js">
<link rel="modulepreload" crossorigin href="./assets/axios-8d47023b.js"> <link rel="modulepreload" crossorigin href="./assets/axios-8d47023b.js">
@ -25,6 +26,23 @@
<link rel="modulepreload" crossorigin href="./assets/el-radio-34353f57.js"> <link rel="modulepreload" crossorigin href="./assets/el-radio-34353f57.js">
<link rel="modulepreload" crossorigin href="./assets/el-form-item-41289c89.js"> <link rel="modulepreload" crossorigin href="./assets/el-form-item-41289c89.js">
<link rel="modulepreload" crossorigin href="./assets/index-5a9f1791.js"> <link rel="modulepreload" crossorigin href="./assets/index-5a9f1791.js">
=======
<script type="module" crossorigin src="./assets/shipping-b8e8d00d.js"></script>
<link rel="modulepreload" crossorigin href="./assets/index-7f5d592d.js">
<link rel="modulepreload" crossorigin href="./assets/axios-6c5b73fd.js">
<link rel="modulepreload" crossorigin href="./assets/config-provider-c47d9507.js">
<link rel="modulepreload" crossorigin href="./assets/el-button-da38b5f5.js">
<link rel="modulepreload" crossorigin href="./assets/el-input-dcf16805.js">
<link rel="modulepreload" crossorigin href="./assets/el-table-column-48a9e196.js">
<link rel="modulepreload" crossorigin href="./assets/el-switch-eb19f460.js">
<link rel="modulepreload" crossorigin href="./assets/el-breadcrumb-item-d3de7c2f.js">
<link rel="modulepreload" crossorigin href="./assets/request-ee118f4d.js">
<link rel="modulepreload" crossorigin href="./assets/vnode-12b3afac.js">
<link rel="modulepreload" crossorigin href="./assets/el-overlay-d6e2b504.js">
<link rel="modulepreload" crossorigin href="./assets/el-radio-4a171ad9.js">
<link rel="modulepreload" crossorigin href="./assets/el-form-item-bb26ae0d.js">
<link rel="modulepreload" crossorigin href="./assets/index-f4fc5175.js">
>>>>>>> h888
<link rel="modulepreload" crossorigin href="./assets/_plugin-vue_export-helper-c27b6911.js"> <link rel="modulepreload" crossorigin href="./assets/_plugin-vue_export-helper-c27b6911.js">
<link rel="stylesheet" href="./assets/axios-3111e043.css"> <link rel="stylesheet" href="./assets/axios-3111e043.css">
<link rel="stylesheet" href="./assets/el-table-column-6c7c84cf.css"> <link rel="stylesheet" href="./assets/el-table-column-6c7c84cf.css">

Loading…
Cancel
Save