|
@@ -37,29 +37,29 @@ class Queueu9 extends Start_Controller {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
public function _index(){
|
|
public function _index(){
|
|
- echo "<pre>";
|
|
|
|
- $user_agent = $_SERVER['HTTP_USER_AGENT'];
|
|
|
|
- $token = $_SERVER['HTTP_X_AUTH_TOKEN'];
|
|
|
|
- $time = $this->input->get('time',true);
|
|
|
|
- $check_str = "ququexd_".$time;
|
|
|
|
- if(empty($user_agent)){
|
|
|
|
- exit('No direct script access allowed');
|
|
|
|
- }
|
|
|
|
- if($user_agent != 'XuChangLongYi/1.0 (Erp)'){
|
|
|
|
- exit('Illegal request');
|
|
|
|
- }
|
|
|
|
- if(empty($token)){
|
|
|
|
- exit('No access permission');
|
|
|
|
- }
|
|
|
|
|
|
+ // echo "<pre>";
|
|
|
|
+ // $user_agent = $_SERVER['HTTP_USER_AGENT'];
|
|
|
|
+ // $token = $_SERVER['HTTP_X_AUTH_TOKEN'];
|
|
|
|
+ // $time = $this->input->get('time',true);
|
|
|
|
+ // $check_str = "ququexd_".$time;
|
|
|
|
+ // if(empty($user_agent)){
|
|
|
|
+ // exit('No direct script access allowed');
|
|
|
|
+ // }
|
|
|
|
+ // if($user_agent != 'XuChangLongYi/1.0 (Erp)'){
|
|
|
|
+ // exit('Illegal request');
|
|
|
|
+ // }
|
|
|
|
+ // if(empty($token)){
|
|
|
|
+ // exit('No access permission');
|
|
|
|
+ // }
|
|
|
|
|
|
- $sercet_str = md5($check_str);
|
|
|
|
|
|
+ // $sercet_str = md5($check_str);
|
|
|
|
|
|
- if($sercet_str != $token){
|
|
|
|
- exit("Request permission is illegal");
|
|
|
|
- }
|
|
|
|
|
|
+ // if($sercet_str != $token){
|
|
|
|
+ // exit("Request permission is illegal");
|
|
|
|
+ // }
|
|
|
|
|
|
|
|
|
|
- exit("执行完毕");
|
|
|
|
|
|
+ // exit("执行完毕");
|
|
}
|
|
}
|
|
|
|
|
|
//执行小单的流转到临时仓的队列
|
|
//执行小单的流转到临时仓的队列
|