Order_ordersource.php
1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
class Order_ordersource extends CI_Driver
{
public $CI;
public function __construct () {
$this->CI = &get_instance();
}
public function all ($id) {
$url = $this->CI->config->item('apiBaseUrl') . 'order/ordersource/'.$id;
$result = file_get_contents($url);
$json = json_decode($result);
$ret = $json->data;
return $ret;
}
public function dueDiligenceType () {
$url = $this->CI->config->item('apiBaseUrl') . 'order/ordersource/dueDiligenceType';
$result = file_get_contents($url);
$json = json_decode($result);
$ret = $json->data;
return $ret;
}
public function baseType () {
$url = $this->CI->config->item('apiBaseUrl') . 'order/ordersource/baseType';
$result = file_get_contents($url);
$json = json_decode($result);
$ret = $json->data;
return $ret;
}
public function confirmType () {
$url = $this->CI->config->item('apiBaseUrl') . 'order/ordersource/confirmType';
$result = file_get_contents($url);
$json = json_decode($result);
$ret = $json->data;
return $ret;
}
}