Authored by cailing

配置更改

... ... @@ -22,19 +22,20 @@ class Yohobuy
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
//java API
const API_URL = 'http://api.yoho.yohoops.org/';//
const API_URL2 = 'http://api.yoho.yohoops.org/';//
const SERVICE_URL = 'http://service.yoho.yohoops.org/';
const YOHOBUY_URL = 'http://www.yohobuy.com/';
const API_OLD = 'http://api2.open.yohobuy.com/';
const SERVICE_NOTIFY = 'http://service.yoho.cn/';// 支付回调地址
// 测试环境
// const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/'
// const SERVICE_URL = 'http://testservice.yoho.cn:28077/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// const API_OLD = 'http://test2.open.yohobuy.com/';
// // 支付回调地址
const API_URL = 'http://api.yoho.yohoops.org/';//
const API_URL2 = 'http://api.yoho.yohoops.org/';//
const SERVICE_URL = 'http://service.yoho.yohoops.org/';
const YOHOBUY_URL = 'http://www.yohobuy.com/';
const API_OLD = 'http://api2.open.yohobuy.com/';
//// 支付回调地址
const SERVICE_NOTIFY = 'http://service.yoho.cn/';
// 测试环境 */
// const API_URL = 'http://testapi.yoho.cn:28078/'; // 'http://192.168.102.205:8080/gateway/'
// const SERVICE_URL = 'http://testservice.yoho.cn:28077/';
// const YOHOBUY_URL = 'http://www.yohobuy.com/';
// const API_OLD = 'http://test2.open.yohobuy.com/';
//// 支付回调地址
// const SERVICE_NOTIFY = 'http://testservice.yoho.cn:28077/';
/* 预览环境 */
... ...
... ... @@ -17,6 +17,8 @@ namespace WebPlugin;
*/
class UdpLog
{
//日志开关
private static $flag = true;
//influxdb url
public static $url = 'influxdb.yohobuy.com';
//influxdb port
... ... @@ -32,6 +34,15 @@ class UdpLog
const RECORD_MODE = 'FILE';//mode: FILE | UDP
/**
* 初始化
*/
private function __construct()
{
if (self::$flag) {
return;
}
}
/**
* proc line and send log to influxdb
* @param $level
* @param $message
... ... @@ -158,4 +169,13 @@ class UdpLog
public static function debug($message, $meta = '') {
self::procLog(__METHOD__, $message, debug_backtrace(), $meta);
}
/**
* yaf trigger error
* @param $message
* @param mixed $meta
*/
public static function triggerError($message, $meta = '') {
self::procLog(__METHOD__, $message, debug_backtrace(), $meta);
}
}
\ No newline at end of file
... ...