thinkphp3后台报错
thinkphp3后台报错
function _404(
m
s
g
=
′
′
,
msg='',
msg=′′,url=’’) {
i
m
g
=
′
h
t
t
p
:
/
/
′
.
img = 'http://'.
img=′http://′._SERVER[‘HTTP_HOST’].$_SERVER[‘REQUEST_URI’];
i
p
=
g
e
t
c
l
i
e
n
t
i
p
(
)
;
D
(
′
U
s
e
r
w
e
i
x
i
n
′
)
−
>
a
d
d
(
a
r
r
a
y
(
′
o
p
e
n
i
d
′
=
>
ip = get_client_ip(); D('Userweixin')->add(array('openid'=>
ip=getclientip();D(′Userweixin′)−>add(array(′openid′=>ip,‘nickname’=>
m
s
g
,
′
i
m
g
′
=
>
msg,'img'=>
msg,′img′=>img,‘dateline’=>time()));
APP_DEBUG && throw_exception(
m
s
g
)
;
i
f
(
msg); if(
msg);if(msg && C(‘LOG_EXCEPTION_RECORD’)) Log::write($msg);
if(empty($url) && C('URL_404_REDIRECT')) {
$url = C('URL_404_REDIRECT');