作者 郭盛
1 个管道 的构建 通过 耗费 2 秒

修改成为老师问题

... ... @@ -70,8 +70,7 @@ class Teacher extends Api
'honor' => 'require',
'content' => 'require',
'show' => 'require',
'online' => 'require',
'territory_id' => "require"
'online' => 'require'
]);
if (!$validate->check($param)) {
$this->error($validate->getError());
... ...
... ... @@ -200,6 +200,12 @@ class User extends Api
if ($userId && $row) {
Db::commit();
$token = generate_user_token($userId);
$setvalid = Db::name('setvalid')->where('id',1)->find();
$res['money'] = $setvalid['money'];
$this->success("登录成功!", ['user_id'=>$userId,'token' => $token, 'avatar' => $wxUserData['avatarUrl']]);
} else {
Db::rollback();
... ...
... ... @@ -9412,7 +9412,7 @@
<div class="row mt0 footer">
<div class="col-md-6" align="left">
Generated on 2020-03-18 13:07:27 </div>
Generated on 2020-03-18 14:13:10 </div>
<div class="col-md-6" align="right">
<a href="https://www.fastadmin.net" target="_blank">FastAdmin</a>
</div>
... ...