From 7c4342124189bb854358c9c7b0d076f04190e5ac Mon Sep 17 00:00:00 2001 From: Anyon Date: Tue, 24 Nov 2020 16:21:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/data/service/TruckService.php | 4 ++-- app/data/service/UserService.php | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/data/service/TruckService.php b/app/data/service/TruckService.php index 36f918ae2..5f2e6c395 100644 --- a/app/data/service/TruckService.php +++ b/app/data/service/TruckService.php @@ -7,7 +7,7 @@ use think\admin\Service; use think\admin\service\InterfaceService; /** - * 快递运输服务 + * 快递运输数据服务 * Class TruckService * @package app\data\service */ @@ -19,7 +19,7 @@ class TruckService extends Service * @param string $provName 省份名称 * @param string $cityName 城市名称 * @param integer $truckCount 邮费基数 - * @return array [邮费金额, 计费基数, 模板编号, 计算描述] + * @return array [邮费金额, 计费基数, 模板编号, 计费描述] * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException diff --git a/app/data/service/UserService.php b/app/data/service/UserService.php index 69eb955b2..5ff816ead 100644 --- a/app/data/service/UserService.php +++ b/app/data/service/UserService.php @@ -35,7 +35,9 @@ class UserService extends Service $map = ['token|openid1|openid2|unionid' => $map]; } $user = $this->save($map, [], $force); - if (empty($user)) throw new \think\Exception('登录授权失败'); + if (empty($user)) { + throw new \think\Exception('登录授权失败'); + } // if ($member['tokenv'] !== $this->buildTokenVerify()) { // throw new \think\Exception('请重新登录授权'); // }