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
ed2e2715
Commit
ed2e2715
authored
Oct 28, 2016
by
蒋林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对外相关接口开发
parent
d5b5a1b9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
Suning.php
application/controllers/api/Suning.php
+1
-1
base_helper.php
application/helpers/base_helper.php
+1
-1
SourceSuning.php
application/libraries/Source/SourceSuning.php
+2
-2
No files found.
application/controllers/api/Suning.php
View file @
ed2e2715
...
@@ -22,7 +22,7 @@ class Suning extends BaseController
...
@@ -22,7 +22,7 @@ class Suning extends BaseController
public
function
__construct
()
public
function
__construct
()
{
{
parent
::
__construct
();
parent
::
__construct
();
ini_set
(
"max_execution_time"
,
6
00
);
ini_set
(
"max_execution_time"
,
18
00
);
}
}
//服务订单作业条件
//服务订单作业条件
...
...
application/helpers/base_helper.php
View file @
ed2e2715
...
@@ -11,6 +11,7 @@ function get_uuapi($imagePath = '')
...
@@ -11,6 +11,7 @@ function get_uuapi($imagePath = '')
$CI
->
load
->
library
(
'uuApi'
,
null
,
'uuApi'
);
$CI
->
load
->
library
(
'uuApi'
,
null
,
'uuApi'
);
$CI
->
uuApi
->
setSoftInfo
(
'106981'
,
'60fb95ff62e7421592b44ebe8174bda2'
);
$CI
->
uuApi
->
setSoftInfo
(
'106981'
,
'60fb95ff62e7421592b44ebe8174bda2'
);
$username
=
'upader'
;
$username
=
'upader'
;
$password
=
'ppcc2015!'
;
$password
=
'ppcc2015!'
;
...
@@ -131,7 +132,6 @@ function phone_code()
...
@@ -131,7 +132,6 @@ function phone_code()
if
(
$num
)
{
if
(
$num
)
{
$body
=
imap_base64
(
imap_fetchbody
(
$mbox
,
imap_num_msg
(
$mbox
),
1
));
$body
=
imap_base64
(
imap_fetchbody
(
$mbox
,
imap_num_msg
(
$mbox
),
1
));
$body
=
iconv
(
'utf8'
,
'gbk'
,
$body
);
preg_match
(
'/\d{6}/'
,
$body
,
$code
);
preg_match
(
'/\d{6}/'
,
$body
,
$code
);
preg_match
(
'/2\d{3}-[\s\S]{14}/'
,
$body
,
$date
);
preg_match
(
'/2\d{3}-[\s\S]{14}/'
,
$body
,
$date
);
...
...
application/libraries/Source/SourceSuning.php
View file @
ed2e2715
...
@@ -519,13 +519,13 @@ class SourceSuning extends Source
...
@@ -519,13 +519,13 @@ class SourceSuning extends Source
{
{
$result
=
phone_code
();
$result
=
phone_code
();
if
(
$num
>
6
0
)
{
if
(
$num
>
2
0
)
{
return
false
;
return
false
;
}
}
if
(
empty
(
$result
)
||
$result
[
'st'
]
>
15
)
{
if
(
empty
(
$result
)
||
$result
[
'st'
]
>
15
)
{
$num
++
;
$num
++
;
usleep
(
2500
);
sleep
(
5
);
return
$this
->
GetPhoneCode
(
$num
);
return
$this
->
GetPhoneCode
(
$num
);
}
}
...
...
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