modified 优化细节

This commit is contained in:
zhaoxiang 2020-10-10 16:48:38 +08:00
parent 48319b49e9
commit 0f1fbab604

View File

@ -3,7 +3,6 @@ declare (strict_types=1);
namespace app\controller\api;
use app\util\StrRandom;
use think\Exception;
use think\facade\App;
use think\Response;
@ -15,15 +14,12 @@ class Miss extends Base {
if (!$version) {
throw new Exception('请先执行安装脚本,完成项目初始化!');
} else {
$this->debug([
'TpVersion' => App::version()
]);
return $this->buildSuccess([
'Product' => config('apiadmin.APP_NAME'),
'Version' => $version,
'Company' => config('apiadmin.COMPANY_NAME'),
'ToYou' => "I'm glad to meet you终于等到你"
'Product' => config('apiadmin.APP_NAME'),
'ApiVersion' => $version,
'TpVersion' => App::version(),
'Company' => config('apiadmin.COMPANY_NAME'),
'ToYou' => "I'm glad to meet you终于等到你"
]);
}
}