Commit 972a87f2 by 冷斌

fix bug

parent f33fde2d
...@@ -96,8 +96,8 @@ class AuthController extends HomebaseController { ...@@ -96,8 +96,8 @@ class AuthController extends HomebaseController {
protected function auth3($params) protected function auth3($params)
{ {
// $url = 'https://api.253.com/open/carriers/carriers-auth'; $url = 'https://api.253.com/open/carriers/carriers-auth';
$url = 'https://api.253.com/open/carriers/carriers-auth-detail'; // $url = 'https://api.253.com/open/carriers/carriers-auth-detail';
$params = [ $params = [
'appId' => 'pPGkFovq', // appId,登录万数平台查看 'appId' => 'pPGkFovq', // appId,登录万数平台查看
'appKey' => 'YLur3BYi', // appKey,登录万数平台查看 'appKey' => 'YLur3BYi', // appKey,登录万数平台查看
...@@ -139,6 +139,8 @@ class AuthController extends HomebaseController { ...@@ -139,6 +139,8 @@ class AuthController extends HomebaseController {
$data['addtime']=time(); $data['addtime']=time();
$check = $this->auth3($data); $check = $this->auth3($data);
echo json_encode(array("ret"=>0,'data'=>$check,'msg'=>'认证失败'));
exit;
if (!$check['chargeStatus']) { if (!$check['chargeStatus']) {
echo json_encode(array("ret"=>0,'data'=>array(),'msg'=>'认证失败')); echo json_encode(array("ret"=>0,'data'=>array(),'msg'=>'认证失败'));
exit; exit;
......
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