Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
weixiuhui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
蒋林
weixiuhui
Commits
cb4a5cf2
Commit
cb4a5cf2
authored
Feb 14, 2017
by
蒋林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
格兰仕-错误提示
parent
0ac18df3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
Galanz.php
application/controllers/test/Galanz.php
+5
-4
SourceGalanz.php
application/libraries/Source/SourceGalanz.php
+1
-1
No files found.
application/controllers/test/Galanz.php
View file @
cb4a5cf2
...
...
@@ -44,9 +44,10 @@ class Galanz extends BaseController
10
=>
[
'u'
=>
'W02029017'
,
'p'
=>
'weixiuhui09'
],
11
=>
[
'u'
=>
'R75500046'
,
'p'
=>
'szwxh!755'
],
12
=>
[
'u'
=>
'K75580035'
,
'p'
=>
'dgqh!769'
],
13
=>
[
'u'
=>
'R02001038'
,
'p'
=>
'weixiuhui09'
],
];
$key
=
1
2
;
$key
=
1
3
;
self
::
$testu
=
$account
[
$key
][
'u'
];
self
::
$testp
=
$account
[
$key
][
'p'
];
//self::$testp = urlencode(str_aes($account[5]['p']));
...
...
@@ -212,7 +213,7 @@ class Galanz extends BaseController
$data
[
'appid'
]
=
'10001'
;
$data
[
'account'
]
=
self
::
$testu
;
$data
[
'pwd'
]
=
self
::
$testp
;
$data
[
'id'
]
=
'
2a475cb2-6312-4fbd-ae64-6f66f57c6f87
'
;
$data
[
'id'
]
=
'
83b6e3c0-9d92-408a-bd2e-227d6db3db4d
'
;
$data
[
'nonce_str'
]
=
$obj
->
GetNonceStr
();
$obj
->
SetValues
(
$data
);
...
...
@@ -222,7 +223,7 @@ class Galanz extends BaseController
$url
=
self
::
$apiUrl
.
"api/galanz/queryOrder"
;
$result
=
curl_post
(
$url
,
$values
);
$result
[
'data'
]
=
json_decode
(
$result
[
'data'
],
true
);
//
$result['data'] = json_decode($result['data'], true);
$this
->
show
(
$result
[
'data'
]);
}
...
...
@@ -280,7 +281,7 @@ class Galanz extends BaseController
$data
[
'appid'
]
=
'10001'
;
$data
[
'account'
]
=
self
::
$testu
;
$data
[
'pwd'
]
=
self
::
$testp
;
$data
[
'
out_trade_no'
]
=
'CALL2016091202257
'
;
$data
[
'
id'
]
=
'83b6e3c0-9d92-408a-bd2e-227d6db3db4d
'
;
$data
[
'nonce_str'
]
=
$obj
->
GetNonceStr
();
$obj
->
SetValues
(
$data
);
...
...
application/libraries/Source/SourceGalanz.php
View file @
cb4a5cf2
...
...
@@ -2633,7 +2633,7 @@ class SourceGalanz extends Source
*/
private
function
HandelOrderError
(
$html
)
{
preg_match
(
'/<scriptt[^>]*>alert\("([^"]+)"\);?<\/scriptt>/'
,
$html
,
$arr
);
preg_match
(
'/<scriptt[^>]*>alert\("([^"]+)"\);?
[^<]*
<\/scriptt>/'
,
$html
,
$arr
);
$error
=
isset
(
$arr
[
1
])
?
$arr
[
1
]
:
''
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment