api/App/Config.php

52 lines
869 B
PHP
Raw Normal View History

2019-08-18 16:52:23 +00:00
<?php
namespace App;
2019-09-16 16:09:38 +00:00
2019-08-18 16:52:23 +00:00
/**
* Application configuration
*
* PHP version 7.0
*/
class Config
{
/**
* Database host
* @var string
*/
const DB_HOST = '49.235.25.67';
2019-08-18 16:52:23 +00:00
/**
* Database name
* @var string
*/
const DB_NAME = 'background';
2019-09-16 16:09:38 +00:00
const ROUTE_PREFIX_DEV = "/api/public/";
2019-08-31 15:43:37 +00:00
const ROUTE_PREFIX = "/wapi/";
2019-08-18 16:52:23 +00:00
/**
* Database user
* @var string
*/
const DB_USER = 'caiyu';
/**
* Database password
* @var string
*/
const DB_PASSWORD = '12345678';
2019-08-18 16:52:23 +00:00
/**
* Show or hide error messages on screen
* @var boolean
*/
const SHOW_ERRORS = true;
static public $DEBUG = false;
2020-05-12 05:17:28 +00:00
static public function Url(){
if (true == Config::$DEBUG){
return "/api/public/Blog/";
}else{
return "/wapi/Blog/";
}
}
2019-08-18 16:52:23 +00:00
}
2019-09-16 16:09:38 +00:00