This commit is contained in:
xiaoyu
2024-02-02 17:40:34 +08:00
parent efab20db98
commit 4b41cd4e04
2 changed files with 5 additions and 7 deletions
-2
View File
@@ -146,7 +146,6 @@ abstract class Wxapp extends HD_Controller{
}
if(!method_exists($this, $method)){
echo $method;exit;
debug_log("[fail]". __FUNCTION__ . ": request not allow; method:{$method}", $this->log_file);
throw new Exception('非法请求', API_CODE_NONE);
}
@@ -154,7 +153,6 @@ abstract class Wxapp extends HD_Controller{
//某个方法或者整个ct在白名单里无需校验
$session = $this->session;
if(!in_array($name, $this->login_white) && 'all' != $this->login_white){
print_r($this->login_white);exit;
if(!$session){
throw new Exception('还未登录', API_CODE_LOGOUT);
}
+5 -5
View File
@@ -16,11 +16,11 @@ class Welcome extends CI_Controller {
//测试地址
//$url = 'https://salespp-sit.hozonauto.com/appservice/app/if/salesclue/createSalesclue';
$name = '唐总'; //客户姓名
$mobile = '13085816967';//客户手机
$name = '不倒翁零食铺'; //客户姓名
$mobile = '18960882090';//客户手机
$comments = '100647'; //门店编码
$samobile = '18923392948';//销售手机
$comments = '100958'; //门店编码
$samobile = '17758949069';//销售手机
$city_id = '350200';
$voId = $city_id . date('mdHis') . sprintf("%06d", rand(1,999999));
@@ -34,7 +34,7 @@ class Welcome extends CI_Controller {
'mobile' => $mobile,
'saMobile' => $samobile,
'cusType' => '30111001',
'remark' => "",
'remark' => "加微信",
'intentModel' => "哪吒V",
);