Commit c80c8af4 authored by hj's avatar hj

更新提交

parent bed115f0
...@@ -92,7 +92,12 @@ class Authenticate ...@@ -92,7 +92,12 @@ class Authenticate
} }
$customerService = app(CustomerService::class); $customerService = app(CustomerService::class);
try{ try{
list($token, $cusNumber) = explode(',', base64_decode($decodeToken['hash'])); $decode = base64_decode($decodeToken['hash']);
if(strpos($decode, ',')){
list($token, $cusNumber) = explode(',', $decode);
}else{
$token = $decode;
}
$customer = $customerService->getCustomerInfoByToken($token); $customer = $customerService->getCustomerInfoByToken($token);
if($customer['status'] == 0){ if($customer['status'] == 0){
......
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