mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 14:01:07 +00:00
优化获取版本号
This commit is contained in:
parent
c16f4fccbf
commit
b17ac4b581
@ -643,7 +643,8 @@ class PublicController
|
||||
*/
|
||||
public function getVersion()
|
||||
{
|
||||
return app('json')->success(['version' => get_crmeb_version()]);
|
||||
$version = parse_ini_file(app()->getRootPath() . '.version');
|
||||
return app('json')->success(['version' => $version['version'], 'version_code' => $version['version_code']]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@ -21,7 +21,7 @@ Route::group(function () {
|
||||
Route::any('order_call_back', 'v1.order.StoreOrderController/callBack')->option(['real_name' => '商家寄件回调']);//商家寄件回调
|
||||
Route::get('get_script', 'v1.PublicController/getScript')->option(['real_name' => '获取统计代码']);//获取统计代码
|
||||
Route::get('version', 'v1.PublicController/getVersion')->option(['real_name' => '获取代码版本号']);
|
||||
})->option(['mark' => 'serve', 'mark_name' => '服务接口']);
|
||||
})->middleware(\app\http\middleware\AllowOriginMiddleware::class)->option(['mark' => 'serve', 'mark_name' => '服务接口']);
|
||||
|
||||
Route::group(function () {
|
||||
//apple快捷登陆
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user