init
Showing
5 changed files
with
14 additions
and
12 deletions
| ... | @@ -521,3 +521,4 @@ $config['rewrite_short_tags'] = FALSE; | ... | @@ -521,3 +521,4 @@ $config['rewrite_short_tags'] = FALSE; |
| 521 | | Array: array('10.0.1.200', '192.168.5.0/24') | 521 | | Array: array('10.0.1.200', '192.168.5.0/24') |
| 522 | */ | 522 | */ |
| 523 | $config['proxy_ips'] = ''; | 523 | $config['proxy_ips'] = ''; |
| 524 | $config['apiBaseUrl'] = 'http://151.28ms.com:8088/'; | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -14,7 +14,7 @@ class Config extends CI_Controller { | ... | @@ -14,7 +14,7 @@ class Config extends CI_Controller { |
| 14 | 14 | ||
| 15 | public function edit($id = null) | 15 | public function edit($id = null) |
| 16 | { | 16 | { |
| 17 | $res = json_decode(file_get_contents('http://151.28ms.com:8088/config/product/' . $id)); | 17 | $res = json_decode(file_get_contents($this->config->item('apiBaseUrl') . 'config/product/' . $id)); |
| 18 | $data = $res->data; | 18 | $data = $res->data; |
| 19 | $arr = array( | 19 | $arr = array( |
| 20 | 'data'=>$data | 20 | 'data'=>$data | ... | ... |
| ... | @@ -91,7 +91,7 @@ class Work extends CI_Controller | ... | @@ -91,7 +91,7 @@ class Work extends CI_Controller |
| 91 | public function detail($id = null) | 91 | public function detail($id = null) |
| 92 | { | 92 | { |
| 93 | $info = array(); | 93 | $info = array(); |
| 94 | $url = 'http://151.28ms.com:8088/order/detail/'.$id; | 94 | $url = $this->config->item('apiBaseUrl') . 'order/detail/'.$id; |
| 95 | 95 | ||
| 96 | $context = stream_context_create(array( | 96 | $context = stream_context_create(array( |
| 97 | 'http' => array( | 97 | 'http' => array( | ... | ... |
| ... | @@ -46,7 +46,8 @@ class CheckLogin | ... | @@ -46,7 +46,8 @@ class CheckLogin |
| 46 | 46 | ||
| 47 | private function getProduct() | 47 | private function getProduct() |
| 48 | { | 48 | { |
| 49 | $url = 'http://151.28ms.com:8088/config/products/'; | 49 | |
| 50 | $url = $this->config->item('apiBaseUrl') . 'config/products/'; | ||
| 50 | $res = json_decode(file_get_contents($url)); | 51 | $res = json_decode(file_get_contents($url)); |
| 51 | $products = $res->data; | 52 | $products = $res->data; |
| 52 | return $products; | 53 | return $products; |
| ... | @@ -54,7 +55,7 @@ class CheckLogin | ... | @@ -54,7 +55,7 @@ class CheckLogin |
| 54 | 55 | ||
| 55 | private function getOrderStatus() | 56 | private function getOrderStatus() |
| 56 | { | 57 | { |
| 57 | $url = 'http://151.28ms.com:8088/order/orderStatus/'; | 58 | $url = $this->config->item('apiBaseUrl') . 'order/orderStatus/'; |
| 58 | $res = json_decode(file_get_contents($url)); | 59 | $res = json_decode(file_get_contents($url)); |
| 59 | $products = $res->data; | 60 | $products = $res->data; |
| 60 | return $products; | 61 | return $products; |
| ... | @@ -63,7 +64,7 @@ class CheckLogin | ... | @@ -63,7 +64,7 @@ class CheckLogin |
| 63 | private function getDepartment() | 64 | private function getDepartment() |
| 64 | { | 65 | { |
| 65 | try { | 66 | try { |
| 66 | $url = 'http://151.28ms.com:8180/department/getTree'; | 67 | $url = $this->config->item('apiBaseUrl') . 'department/getTree'; |
| 67 | $res = json_decode(file_get_contents($url)); | 68 | $res = json_decode(file_get_contents($url)); |
| 68 | $products = $res->data; | 69 | $products = $res->data; |
| 69 | return $products; | 70 | return $products; |
| ... | @@ -75,7 +76,7 @@ class CheckLogin | ... | @@ -75,7 +76,7 @@ class CheckLogin |
| 75 | private function getCustomerManagers() | 76 | private function getCustomerManagers() |
| 76 | { | 77 | { |
| 77 | try { | 78 | try { |
| 78 | $url = 'http://151.28ms.com:8180/system/user/getAllCustomerManager'; | 79 | $url = $this->config->item('apiBaseUrl') . 'system/user/getAllCustomerManager'; |
| 79 | $res = json_decode(file_get_contents($url)); | 80 | $res = json_decode(file_get_contents($url)); |
| 80 | $products = $res->data; | 81 | $products = $res->data; |
| 81 | return $products; | 82 | return $products; |
| ... | @@ -87,7 +88,7 @@ class CheckLogin | ... | @@ -87,7 +88,7 @@ class CheckLogin |
| 87 | private function getOperatorManagers() | 88 | private function getOperatorManagers() |
| 88 | { | 89 | { |
| 89 | try { | 90 | try { |
| 90 | $url = 'http://151.28ms.com:8180/system/user/getOperatorManager'; | 91 | $url = $this->config->item('apiBaseUrl') . 'system/user/getOperatorManager'; |
| 91 | $res = json_decode(file_get_contents($url)); | 92 | $res = json_decode(file_get_contents($url)); |
| 92 | $products = $res->data; | 93 | $products = $res->data; |
| 93 | return $products; | 94 | return $products; | ... | ... |
| ... | @@ -21,13 +21,13 @@ | ... | @@ -21,13 +21,13 @@ |
| 21 | <div class="form-group col-sm-4 col-md-2"> | 21 | <div class="form-group col-sm-4 col-md-2"> |
| 22 | <label>罚息</label> | 22 | <label>罚息</label> |
| 23 | <smail class="c-999">罚息=利率*N%</smail> | 23 | <smail class="c-999">罚息=利率*N%</smail> |
| 24 | <input name="interestPenalty" type="text" class="form-control input-text" value="" placeholder="请输入N"> | 24 | <input name="interestPenalty" type="text" class="form-control input-text" value="<?=$data->interestPenalty?>" placeholder="请输入N"> |
| 25 | </div> | 25 | </div> |
| 26 | </div> | 26 | </div> |
| 27 | <div class="row cl"> | 27 | <div class="row cl"> |
| 28 | <div class="form-group col-sm-4 col-md-2"> | 28 | <div class="form-group col-sm-4 col-md-2"> |
| 29 | <label>滞纳金</label> | 29 | <label>滞纳金</label> |
| 30 | <input name="overdueFine" type="text" class="form-control input-text" value=""> | 30 | <input name="overdueFine" type="text" class="form-control input-text" value="<?=$data->overdueFine?>"> |
| 31 | </div> | 31 | </div> |
| 32 | </div> | 32 | </div> |
| 33 | <div class="row cl"> | 33 | <div class="row cl"> |
| ... | @@ -44,21 +44,21 @@ | ... | @@ -44,21 +44,21 @@ |
| 44 | <div class="row cl"> | 44 | <div class="row cl"> |
| 45 | <div class="form-group col-sm-4 col-md-2"> | 45 | <div class="form-group col-sm-4 col-md-2"> |
| 46 | <label>借款期限</label> | 46 | <label>借款期限</label> |
| 47 | <input name="loanDeadline" type="text" class="form-control input-text" value=""> | 47 | <input name="loanDeadline" type="text" class="form-control input-text" value="<?=$data->loanDeadline?>"> |
| 48 | <span class="glyphicon form-control-feedback">月</span> | 48 | <span class="glyphicon form-control-feedback">月</span> |
| 49 | </div> | 49 | </div> |
| 50 | </div> | 50 | </div> |
| 51 | <div class="row cl"> | 51 | <div class="row cl"> |
| 52 | <div class="form-group col-sm-4 col-md-2"> | 52 | <div class="form-group col-sm-4 col-md-2"> |
| 53 | <label>授额上限</label> | 53 | <label>授额上限</label> |
| 54 | <input type="text" name="loanLimit" class="form-control input-text" value=""> | 54 | <input type="text" name="loanLimit" class="form-control input-text" value="<?=$data->loanLimit?>"> |
| 55 | <span class="glyphicon form-control-feedback">元</span> | 55 | <span class="glyphicon form-control-feedback">元</span> |
| 56 | </div> | 56 | </div> |
| 57 | </div> | 57 | </div> |
| 58 | <div class="row cl"> | 58 | <div class="row cl"> |
| 59 | <div class="form-group col-sm-12 col-md-12"> | 59 | <div class="form-group col-sm-12 col-md-12"> |
| 60 | <label>备注</label> | 60 | <label>备注</label> |
| 61 | <textarea name="remark" class="textarea"></textarea> | 61 | <textarea name="remark" class="textarea"><?=$data->remark?></textarea> |
| 62 | </div> | 62 | </div> |
| 63 | </div> | 63 | </div> |
| 64 | </form> | 64 | </form> | ... | ... |
-
Please register or sign in to post a comment