1.缺失信息提交
This commit is contained in:
@ -28,11 +28,12 @@ use app\common\model\noticesetting\NoticeSetting;
|
|||||||
use app\common\model\UserLevel;
|
use app\common\model\UserLevel;
|
||||||
use app\common\service\storage\Driver as StorageDriver;
|
use app\common\service\storage\Driver as StorageDriver;
|
||||||
use app\common\service\UrlServer;
|
use app\common\service\UrlServer;
|
||||||
use think\Db;
|
use think\facade\Db;
|
||||||
use think\Exception;
|
use think\Exception;
|
||||||
use app\common\service\ConfigServer;
|
use app\common\service\ConfigServer;
|
||||||
use think\facade\Hook;
|
use think\facade\Hook;
|
||||||
|
|
||||||
|
|
||||||
class UserServer
|
class UserServer
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -53,7 +54,7 @@ class UserServer
|
|||||||
$avatar_url = $response['headimgurl'] ?? '';
|
$avatar_url = $response['headimgurl'] ?? '';
|
||||||
$nickname = $response['nickname'] ?? '';
|
$nickname = $response['nickname'] ?? '';
|
||||||
|
|
||||||
(new \think\Db)->startTrans();
|
Db::startTrans();
|
||||||
|
|
||||||
// 获取存储引擎
|
// 获取存储引擎
|
||||||
$config = [
|
$config = [
|
||||||
|
|||||||
@ -24,19 +24,19 @@ return [
|
|||||||
// 数据库类型
|
// 数据库类型
|
||||||
'type' => env('database.type', 'mysql'),
|
'type' => env('database.type', 'mysql'),
|
||||||
// 服务器地址
|
// 服务器地址
|
||||||
'hostname' => env('database.hostname', 'likeshop-mysql'),
|
'hostname' => env('database.hostname', '127.0.0.1'),
|
||||||
// 数据库名
|
// 数据库名
|
||||||
'database' => env('database.database', 'localhost_likeadmin'),
|
'database' => env('database.database', 'jianbing'),
|
||||||
// 用户名
|
// 用户名
|
||||||
'username' => env('database.username', 'root'),
|
'username' => env('database.username', 'root'),
|
||||||
// 密码
|
// 密码
|
||||||
'password' => env('database.password', 'root'),
|
'password' => env('database.password', 'c24a8441c99a673b'),
|
||||||
// 端口
|
// 端口
|
||||||
'hostport' => env('database.hostport', '3306'),
|
'hostport' => env('database.hostport', '3306'),
|
||||||
// 数据库连接参数
|
// 数据库连接参数
|
||||||
'params' => [],
|
'params' => [],
|
||||||
// 数据库编码默认采用utf8
|
// 数据库编码默认采用utf8
|
||||||
'charset' => env('database.charset', 'utf8mb4'),
|
'charset' => env('database.charset', 'utf8'),
|
||||||
// 数据库表前缀
|
// 数据库表前缀
|
||||||
'prefix' => env('database.prefix', 'la_'),
|
'prefix' => env('database.prefix', 'la_'),
|
||||||
// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
|
// 数据库部署方式:0 集中式(单一服务器),1 分布式(主从服务器)
|
||||||
|
|||||||
Reference in New Issue
Block a user