Make dxped-url configurable
这个提交包含在:
父节点
40dc26c120
当前提交
07ba06d104
共有 3 个文件被更改,包括 3 次插入 和 2 次删除
|
|
@ -32,6 +32,7 @@ $config['datadir'] = null; // default to install directory
|
||||||
$config['table_name'] = "TABLE_HRD_CONTACTS_V01";
|
$config['table_name'] = "TABLE_HRD_CONTACTS_V01";
|
||||||
$config['locator'] = "";
|
$config['locator'] = "";
|
||||||
$config['display_freq'] = true;
|
$config['display_freq'] = true;
|
||||||
|
$config['dxped_list'] = "https://cdn.cloudlog.org/read_ng3k_dxped_list.php";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ class Workabledxcc extends CI_Controller
|
||||||
public function dxcclist()
|
public function dxcclist()
|
||||||
{
|
{
|
||||||
|
|
||||||
$json = file_get_contents('https://cdn.cloudlog.org/read_ng3k_dxped_list.php');
|
$json = file_get_contents($this->config->item('dxped_list') ?? 'https://cdn.cloudlog.org/read_ng3k_dxped_list.php');
|
||||||
|
|
||||||
// Decode the JSON data into a PHP array
|
// Decode the JSON data into a PHP array
|
||||||
$dataResult = json_decode($json, true);
|
$dataResult = json_decode($json, true);
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ class Workabledxcc_model extends CI_Model
|
||||||
|
|
||||||
public function GetThisWeek()
|
public function GetThisWeek()
|
||||||
{
|
{
|
||||||
$json = file_get_contents('https://cdn.cloudlog.org/read_ng3k_dxped_list.php');
|
$json = file_get_contents($this->config->item('dxped_list') ?? 'https://cdn.cloudlog.org/read_ng3k_dxped_list.php');
|
||||||
|
|
||||||
// Step 2: Convert the JSON data to an array.
|
// Step 2: Convert the JSON data to an array.
|
||||||
$data = json_decode($json, true);
|
$data = json_decode($json, true);
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用