Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
b1422bc3
authored
2018-03-21 22:22:45 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
d60067b8
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
12 deletions
application/config/config.php
application/controllers/Config.php
application/controllers/Work.php
application/hooks/CheckLogin.php
application/views/config/edit.php
application/config/config.php
View file @
b1422bc
...
...
@@ -521,3 +521,4 @@ $config['rewrite_short_tags'] = FALSE;
| Array: array('10.0.1.200', '192.168.5.0/24')
*/
$config
[
'proxy_ips'
]
=
''
;
$config
[
'apiBaseUrl'
]
=
'http://151.28ms.com:8088/'
;
\ No newline at end of file
...
...
application/controllers/Config.php
View file @
b1422bc
...
...
@@ -14,7 +14,7 @@ class Config extends CI_Controller {
public
function
edit
(
$id
=
null
)
{
$res
=
json_decode
(
file_get_contents
(
'http://151.28ms.com:8088/
config/product/'
.
$id
));
$res
=
json_decode
(
file_get_contents
(
$this
->
config
->
item
(
'apiBaseUrl'
)
.
'
config/product/'
.
$id
));
$data
=
$res
->
data
;
$arr
=
array
(
'data'
=>
$data
...
...
application/controllers/Work.php
View file @
b1422bc
...
...
@@ -91,7 +91,7 @@ class Work extends CI_Controller
public
function
detail
(
$id
=
null
)
{
$info
=
array
();
$url
=
'http://151.28ms.com:8088/
order/detail/'
.
$id
;
$url
=
$this
->
config
->
item
(
'apiBaseUrl'
)
.
'
order/detail/'
.
$id
;
$context
=
stream_context_create
(
array
(
'http'
=>
array
(
...
...
application/hooks/CheckLogin.php
View file @
b1422bc
...
...
@@ -46,7 +46,8 @@ class CheckLogin
private
function
getProduct
()
{
$url
=
'http://151.28ms.com:8088/config/products/'
;
$url
=
$this
->
config
->
item
(
'apiBaseUrl'
)
.
'config/products/'
;
$res
=
json_decode
(
file_get_contents
(
$url
));
$products
=
$res
->
data
;
return
$products
;
...
...
@@ -54,7 +55,7 @@ class CheckLogin
private
function
getOrderStatus
()
{
$url
=
'http://151.28ms.com:8088/
order/orderStatus/'
;
$url
=
$this
->
config
->
item
(
'apiBaseUrl'
)
.
'
order/orderStatus/'
;
$res
=
json_decode
(
file_get_contents
(
$url
));
$products
=
$res
->
data
;
return
$products
;
...
...
@@ -63,7 +64,7 @@ class CheckLogin
private
function
getDepartment
()
{
try
{
$url
=
'http://151.28ms.com:8180/
department/getTree'
;
$url
=
$this
->
config
->
item
(
'apiBaseUrl'
)
.
'
department/getTree'
;
$res
=
json_decode
(
file_get_contents
(
$url
));
$products
=
$res
->
data
;
return
$products
;
...
...
@@ -75,7 +76,7 @@ class CheckLogin
private
function
getCustomerManagers
()
{
try
{
$url
=
'http://151.28ms.com:8180/
system/user/getAllCustomerManager'
;
$url
=
$this
->
config
->
item
(
'apiBaseUrl'
)
.
'
system/user/getAllCustomerManager'
;
$res
=
json_decode
(
file_get_contents
(
$url
));
$products
=
$res
->
data
;
return
$products
;
...
...
@@ -87,7 +88,7 @@ class CheckLogin
private
function
getOperatorManagers
()
{
try
{
$url
=
'http://151.28ms.com:8180/
system/user/getOperatorManager'
;
$url
=
$this
->
config
->
item
(
'apiBaseUrl'
)
.
'
system/user/getOperatorManager'
;
$res
=
json_decode
(
file_get_contents
(
$url
));
$products
=
$res
->
data
;
return
$products
;
...
...
application/views/config/edit.php
View file @
b1422bc
...
...
@@ -21,13 +21,13 @@
<div
class=
"form-group col-sm-4 col-md-2"
>
<label>
罚息
</label>
<smail
class=
"c-999"
>
罚息=利率*N%
</smail>
<input
name=
"interestPenalty"
type=
"text"
class=
"form-control input-text"
value=
""
placeholder=
"请输入N"
>
<input
name=
"interestPenalty"
type=
"text"
class=
"form-control input-text"
value=
"
<?=
$data
->
interestPenalty
?>
"
placeholder=
"请输入N"
>
</div>
</div>
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-4 col-md-2"
>
<label>
滞纳金
</label>
<input
name=
"overdueFine"
type=
"text"
class=
"form-control input-text"
value=
""
>
<input
name=
"overdueFine"
type=
"text"
class=
"form-control input-text"
value=
"
<?=
$data
->
overdueFine
?>
"
>
</div>
</div>
<div
class=
"row cl"
>
...
...
@@ -44,21 +44,21 @@
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-4 col-md-2"
>
<label>
借款期限
</label>
<input
name=
"loanDeadline"
type=
"text"
class=
"form-control input-text"
value=
""
>
<input
name=
"loanDeadline"
type=
"text"
class=
"form-control input-text"
value=
"
<?=
$data
->
loanDeadline
?>
"
>
<span
class=
"glyphicon form-control-feedback"
>
月
</span>
</div>
</div>
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-4 col-md-2"
>
<label>
授额上限
</label>
<input
type=
"text"
name=
"loanLimit"
class=
"form-control input-text"
value=
""
>
<input
type=
"text"
name=
"loanLimit"
class=
"form-control input-text"
value=
"
<?=
$data
->
loanLimit
?>
"
>
<span
class=
"glyphicon form-control-feedback"
>
元
</span>
</div>
</div>
<div
class=
"row cl"
>
<div
class=
"form-group col-sm-12 col-md-12"
>
<label>
备注
</label>
<textarea
name=
"remark"
class=
"textarea"
></textarea>
<textarea
name=
"remark"
class=
"textarea"
>
<
?=
$data
->
remark
?>
<
/textarea>
</div>
</div>
</form>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment