Commit ed2e2715 authored by 蒋林's avatar 蒋林

对外相关接口开发

parent d5b5a1b9
......@@ -22,7 +22,7 @@ class Suning extends BaseController
public function __construct()
{
parent::__construct();
ini_set("max_execution_time", 600);
ini_set("max_execution_time", 1800);
}
//服务订单作业条件
......
......@@ -11,6 +11,7 @@ function get_uuapi($imagePath = '')
$CI->load->library('uuApi', null, 'uuApi');
$CI->uuApi->setSoftInfo('106981','60fb95ff62e7421592b44ebe8174bda2');
$username = 'upader';
$password = 'ppcc2015!';
......@@ -131,7 +132,6 @@ function phone_code()
if ($num) {
$body = imap_base64(imap_fetchbody($mbox, imap_num_msg($mbox), 1));
$body = iconv('utf8', 'gbk', $body);
preg_match('/\d{6}/', $body, $code);
preg_match('/2\d{3}-[\s\S]{14}/', $body, $date);
......
......@@ -519,13 +519,13 @@ class SourceSuning extends Source
{
$result = phone_code();
if ($num > 60) {
if ($num > 20) {
return false;
}
if (empty($result) || $result['st'] > 15) {
$num++;
usleep(2500);
sleep(5);
return $this->GetPhoneCode($num);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment