修改文件描述

This commit is contained in:
Anyon 2020-11-24 16:21:45 +08:00
parent 727c770ecc
commit 7c43421241
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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('请重新登录授权');
// }