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
a3546f31
authored
2018-03-25 20:51:25 +0800
by
Zelig
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' of
http://g.28ms.com:8000/yangjianbin/page
into develop
2 parents
c03b50d5
6df9553b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
application/hooks/CheckLogin.php
application/views/work/图片上传.php
application/hooks/CheckLogin.php
View file @
a3546f3
...
...
@@ -86,6 +86,9 @@ class CheckLogin
if
(
!
$session
->
loanNatureEnum
)
{
$session
->
loanNatureEnum
=
$this
->
getLoanNatureEnum
();
}
if
(
!
$session
->
sourceBaseType
)
{
$session
->
sourceBaseType
=
$this
->
getSourceBaseType
();
}
/*if (preg_match("/admin|base/i", uri_string())) {
if(!$this->CI->session->isadmin){
redirect('login');
...
...
@@ -333,4 +336,16 @@ class CheckLogin
}
}
private
function
getSourceBaseType
()
{
try
{
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'order/ordersource/baseType'
;
$res
=
json_decode
(
file_get_contents
(
$url
));
$products
=
$res
->
data
;
return
$products
;
}
catch
(
Exception
$e
)
{
return
array
();
}
}
}
\ No newline at end of file
...
...
application/views/work/图片上传.php
View file @
a3546f3
...
...
@@ -6,8 +6,14 @@
<label>
资料上传
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select uploader"
size=
"1"
>
<option
value=
"1"
>
浙江法院公开网
</option>
<option
value=
"2"
>
全国被执行网
</option>
<?php
foreach
(
$this
->
session
->
sourceBaseType
as
$k
=>
$v
)
:?>
<
option
value
=
"<?=
$v->code
?>"
><?=
$v
->
desc
?>
</option>
<?php
if
(
$v
->
children
&&
!
empty
(
$v
->
children
))
:?>
<?
php
foreach
(
$this
->
session
->
sourceBaseType
as
$kk
=>
$vv
)
:?>
<
option
value
=
"<?=
$vv->code
?>"
>&
nbsp
;
&
nbsp
;
--<?=
$vv
->
desc
?>
</option>
<?php
endforeach
;
?>
<?php
endif
;
?>
<?php
endforeach
;
?>
</select>
</span>
</div>
...
...
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