Commit cb4a5cf2 authored by 蒋林's avatar 蒋林

格兰仕-错误提示

parent 0ac18df3
......@@ -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 = 12;
$key = 13;
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);
......
......@@ -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] : '';
......
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