Forráskód Böngészése

remove vapi model

stanley-king 1 éve
szülő
commit
56d27071fd

+ 0 - 18
docker/compose/dongpeng/acc/docker-compose.yml

@@ -36,22 +36,4 @@ services:
     deploy:
       resources:
         limits:
-          cpus: '8'
-
-  vapisrv:
-    image: php-zts:7.3.18
-    ports:
-      - 9702:9100
-    volumes:
-      - ../../../../:/var/www/html
-      - ../conf/etc/localtime:/etc/localtime:ro
-      - ../conf/php/php.ini:/usr/local/etc/php/php.ini
-      - /home/dongpeng/upload:/var/www/html/data/upload
-      - /home/dongpeng/shoplog:/var/www/html/data/log
-      - ../conf/php/vapi-spwan-start:/usr/local/bin/docker-spwan-start
-    container_name: "panda-vapi"
-    command: ['docker-spwan-start']
-    deploy:
-      resources:
-        limits:
           cpus: '8'

+ 0 - 9
docker/compose/dongpeng/conf/nginx/nginx.conf

@@ -101,15 +101,6 @@ http
             try_files $uri $uri/ /mobile/index.html;
         }
 
-        location ~ /vapi/[/\w]+\.php$ {
-            root           $folder_name;
-            fastcgi_pass   docker.hostip:9702;
-            fastcgi_index  index.php;
-            fastcgi_param  SCRIPT_FILENAME  $folder_name$fastcgi_script_name;
-            fastcgi_param  SIGN $http_sign;
-            include fastcgi_params;
-        }
-
         location ~ /mchsrv/[/\w]+\.php$ {
             root           $folder_name;
             fastcgi_pass   docker.hostip:9102;

+ 0 - 11
docker/compose/dongpeng/conf/php/vapi-spwan-start

@@ -1,11 +0,0 @@
-#!/bin/sh
-set -e
-spawn-fcgi -a 0.0.0.0 -p 9100 -F 1 -f "php /var/www/html/vapi/vapi.php"
-
-time=$(date "+%Y%m%d")
-
-if [ ! -f "/var/www/html/data/log/${time}-vapi.log" ]; then
-    touch "/var/www/html/data/log/${time}-vapi.log"
-fi
-
-tail -f "/var/www/html/data/log/${time}-vapi.log"

+ 0 - 11
docker/compose/homecuda/conf/php/vapi-spwan-start

@@ -1,11 +0,0 @@
-#!/bin/sh
-set -e
-spawn-fcgi -a 0.0.0.0 -p 9100 -F 1 -f "php /var/www/html/vapi/vapi.php"
-
-time=$(date "+%Y%m%d")
-
-if [ ! -f "/var/www/html/data/log/${time}-vapi.log" ]; then
-    touch "/var/www/html/data/log/${time}-vapi.log"
-fi
-
-tail -f "/var/www/html/data/log/${time}-vapi.log"

+ 0 - 18
docker/compose/workcuda/acc/docker-compose.yml

@@ -36,22 +36,4 @@ services:
     deploy:
       resources:
         limits:
-          cpus: '8'
-
-  vapisrv:
-    image: php-zts:7.3.18
-    ports:
-      - 9702:9100
-    volumes:
-      - ../../../../:/var/www/html
-      - ../conf/etc/localtime:/etc/localtime:ro
-      - ../conf/php/php.ini:/usr/local/etc/php/php.ini
-      - /mnt/upload:/var/www/html/data/upload
-      - /mnt/shoplog:/var/www/html/data/log
-      - ../conf/php/vapi-spwan-start:/usr/local/bin/docker-spwan-start
-    container_name: "panda-vapi"
-    command: ['docker-spwan-start']
-    deploy:
-      resources:
-        limits:
           cpus: '8'

+ 0 - 9
docker/compose/workcuda/conf/nginx/nginx.conf

@@ -101,15 +101,6 @@ http
             try_files $uri $uri/ /mobile/index.html;
         }
 
-        location ~ /vapi/[/\w]+\.php$ {
-            root           $folder_name;
-            fastcgi_pass   docker.hostip:9702;
-            fastcgi_index  index.php;
-            fastcgi_param  SCRIPT_FILENAME  $folder_name$fastcgi_script_name;
-            fastcgi_param  SIGN $http_sign;
-            include fastcgi_params;
-        }
-
         location ~ /mchsrv/[/\w]+\.php$ {
             root           $folder_name;
             fastcgi_pass   docker.hostip:9102;

+ 0 - 11
docker/compose/workcuda/conf/php/vapi-spwan-start

@@ -1,11 +0,0 @@
-#!/bin/sh
-set -e
-spawn-fcgi -a 0.0.0.0 -p 9100 -F 1 -f "php /var/www/html/vapi/vapi.php"
-
-time=$(date "+%Y%m%d")
-
-if [ ! -f "/var/www/html/data/log/${time}-vapi.log" ]; then
-    touch "/var/www/html/data/log/${time}-vapi.log"
-fi
-
-tail -f "/var/www/html/data/log/${time}-vapi.log"

+ 0 - 18
docker/compose/xiaoyu/admin/docker-compose.yml

@@ -99,24 +99,6 @@ services:
 #    container_name: "panda-token-refresh"
 #    command: [ php,"/var/www/html/crontab/index.php",'vendor','token_refresh' ]
 
-  vapisrv:
-    image: php-zts:7.3.18
-    ports:
-      - 9103:9103
-    volumes:
-      - ../../../../:/var/www/html
-      - ../conf/etc/localtime:/etc/localtime:ro
-      - ../conf/php/php.ini:/usr/local/etc/php/php.ini
-      - ../../../../data/upload:/var/www/html/data/upload
-      - ../../../../data/log:/var/www/html/data/log
-      - ../conf/php/vapi-spwan-start:/usr/local/bin/docker-spwan-start
-    container_name: "panda-vapi"
-    command: [ 'docker-spwan-start' ]
-    deploy:
-      resources:
-        limits:
-          cpus: '8'
-
 
   searcher:
     image: php-zts-debug:7.3.18

+ 0 - 9
docker/compose/xiaoyu/conf/nginx/nginx.conf

@@ -70,15 +70,6 @@ http
             include fastcgi_params;
         }
 
-        location ~ /vapi/[/\w]+\.php$ {
-            root           $folder_name;
-            fastcgi_pass   vapisrv:9103;
-            fastcgi_index  index.php;
-            fastcgi_param  SCRIPT_FILENAME  $folder_name$fastcgi_script_name;
-            fastcgi_param  SIGN $http_sign;
-            include fastcgi_params;
-        }
-
         location ~ \.php$ {
 	        add_header Cache-Control no-store;
             root           $folder_name;

+ 0 - 11
docker/compose/xiaoyu/conf/php/vapi-spwan-start

@@ -1,11 +0,0 @@
-#!/bin/sh
-set -e
-spawn-fcgi -a 0.0.0.0 -p 9103 -F 16 -f "php /var/www/html/vapi/vapi.php"
-
-time=$(date "+%Y%m%d")
-
-if [ ! -f "/var/www/html/data/log/${time}-vapi.log" ]; then
-    touch "/var/www/html/data/log/${time}-vapi.log"
-fi
-
-tail -f "/var/www/html/data/log/${time}-vapi.log"

+ 0 - 9
docker/compose/xyzt/conf/nginx/nginx.conf

@@ -113,15 +113,6 @@ http
             include fastcgi_params;
         }
 
-        location ~ /vapi/[/\w]+\.php$ {
-            root           $folder_name;
-            fastcgi_pass   docker.hostip:9103;
-            fastcgi_index  index.php;
-            fastcgi_param  SCRIPT_FILENAME  $folder_name$fastcgi_script_name;
-            fastcgi_param  SIGN $http_sign;
-            include fastcgi_params;
-        }
-
         location ~ \.php$ {
 	        add_header Cache-Control no-store;
             root           $folder_name;

+ 0 - 11
docker/compose/xyzt/conf/php/vapi-spwan-start

@@ -1,11 +0,0 @@
-#!/bin/sh
-set -e
-spawn-fcgi -a 0.0.0.0 -p 9100 -F 1 -f "php /var/www/html/vapi/vapi.php"
-
-time=$(date "+%Y%m%d")
-
-if [ ! -f "/var/www/html/data/log/${time}-vapi.log" ]; then
-    touch "/var/www/html/data/log/${time}-vapi.log"
-fi
-
-tail -f "/var/www/html/data/log/${time}-vapi.log"

+ 0 - 18
docker/compose/xyzt/tacc/docker-compose.yml

@@ -37,22 +37,4 @@ services:
     deploy:
       resources:
         limits:
-          cpus: '8'
-
-  vapisrv:
-    image: php-zts:7.3.18
-    ports:
-      - 9103:9100
-    volumes:
-      - ../../../../:/var/www/html
-      - ../conf/etc/localtime:/etc/localtime:ro
-      - ../conf/php/php.ini:/usr/local/etc/php/php.ini
-      - /mnt/upload:/var/www/html/data/upload
-      - /mnt/testlog:/var/www/html/data/log
-      - ../conf/php/vapi-spwan-start:/usr/local/bin/docker-spwan-start
-    container_name: "panda-vapi"
-    command: ['docker-spwan-start']
-    deploy:
-      resources:
-        limits:
           cpus: '8'

+ 0 - 9
docker/compose/yl/conf/nginx/nginx.conf

@@ -114,15 +114,6 @@ http
             include fastcgi_params;
         }
 
-        location ~ /vapi/[/\w]+\.php$ {
-            root           $folder_name;
-            fastcgi_pass   docker.hostip:9703;
-            fastcgi_index  index.php;
-            fastcgi_param  SCRIPT_FILENAME  $folder_name$fastcgi_script_name;
-            fastcgi_param  SIGN $http_sign;
-            include fastcgi_params;
-        }
-
         location ~ \.php$ {
 	        add_header Cache-Control no-store;
             root           $folder_name;

+ 0 - 11
docker/compose/yl/conf/php/vapi-spwan-start

@@ -1,11 +0,0 @@
-#!/bin/sh
-set -e
-spawn-fcgi -a 0.0.0.0 -p 9100 -F 16 -f "php /var/www/html/vapi/vapi.php"
-
-time=$(date "+%Y%m%d")
-
-if [ ! -f "/var/www/html/data/log/${time}-vapi.log" ]; then
-    touch "/var/www/html/data/log/${time}-vapi.log"
-fi
-
-tail -f "/var/www/html/data/log/${time}-vapi.log"

+ 0 - 18
docker/compose/yl/ylacc/docker-compose.yml

@@ -37,22 +37,4 @@ services:
     deploy:
       resources:
         limits:
-          cpus: '8'
-
-  vapisrv:
-    image: php-zts:7.3.18
-    ports:
-      - 9703:9100
-    volumes:
-      - ../../../../:/var/www/html
-      - ../conf/etc/localtime:/etc/localtime:ro
-      - ../conf/php/php.ini:/usr/local/etc/php/php.ini
-      - /mnt/upload:/var/www/html/data/upload
-      - /mnt/yllog:/var/www/html/data/log
-      - ../conf/php/vapi-spwan-start:/usr/local/bin/docker-spwan-start
-    container_name: "yl-vapi"
-    command: ['docker-spwan-start']
-    deploy:
-      resources:
-        limits:
           cpus: '8'

+ 0 - 18
docker/compose/zhaoming/acc/docker-compose.yml

@@ -36,22 +36,4 @@ services:
     deploy:
       resources:
         limits:
-          cpus: '8'
-
-  vapisrv-zm:
-    image: php-zts:7.3.18
-    ports:
-      - 9802:9100
-    volumes:
-      - ../../../../:/var/www/html
-      - ../conf/etc/localtime:/etc/localtime:ro
-      - ../conf/php/php.ini:/usr/local/etc/php/php.ini
-      - /home/zhaoming/upload:/var/www/html/data/upload
-      - /home/zhaoming/shoplog:/var/www/html/data/log
-      - ../conf/php/vapi-spwan-start:/usr/local/bin/docker-spwan-start
-    container_name: "panda-vapi-zm"
-    command: ['docker-spwan-start']
-    deploy:
-      resources:
-        limits:
           cpus: '8'

+ 0 - 9
docker/compose/zhaoming/conf/nginx/nginx.conf

@@ -101,15 +101,6 @@ http
             try_files $uri $uri/ /mobile/index.html;
         }
 
-        location ~ /vapi/[/\w]+\.php$ {
-            root           $folder_name;
-            fastcgi_pass   docker.hostip:9802;
-            fastcgi_index  index.php;
-            fastcgi_param  SCRIPT_FILENAME  $folder_name$fastcgi_script_name;
-            fastcgi_param  SIGN $http_sign;
-            include fastcgi_params;
-        }
-
         location ~ /mchsrv/[/\w]+\.php$ {
             root           $folder_name;
             fastcgi_pass   docker.hostip:9102;

+ 0 - 11
docker/compose/zhaoming/conf/php/vapi-spwan-start

@@ -1,11 +0,0 @@
-#!/bin/sh
-set -e
-spawn-fcgi -a 0.0.0.0 -p 9100 -F 1 -f "php /var/www/html/vapi/vapi.php"
-
-time=$(date "+%Y%m%d")
-
-if [ ! -f "/var/www/html/data/log/${time}-vapi.log" ]; then
-    touch "/var/www/html/data/log/${time}-vapi.log"
-fi
-
-tail -f "/var/www/html/data/log/${time}-vapi.log"

+ 0 - 71
helper/fcgisrv/VApiServer.php

@@ -1,71 +0,0 @@
-<?php
-
-
-namespace fcgisrv;
-
-require_once(BASE_ROOT_PATH . '/helper/area_helper.php');
-require_once(BASE_CORE_PATH . '/framework/function/http.php');
-require_once(BASE_ROOT_PATH . '/helper/session_helper.php');
-require_once(BASE_ROOT_PATH . '/helper/sensitive_word/dfa.php');
-require_once(BASE_ROOT_PATH . '/helper/exceptionex.php');
-require_once(BASE_HELPER_PATH . '/fcgisrv/BaseServer.php');
-require_once(BASE_HELPER_PATH . '/refill/util.php');
-
-use Log;
-use Base;
-use UnSignException;
-use Exception;
-use merchantControl;
-use errcode;
-
-class VApiServer extends BaseServer
-{
-    public function __construct($subPath)
-    {
-        parent::__construct($subPath);
-
-        $exfiles = [
-
-        ];
-
-        $this->setExFiles($exfiles);
-    }
-
-    static private $stInstance = NULL;
-    static public function instance()
-    {
-        if(self::$stInstance == NULL) {
-            self::$stInstance = new VApiServer('vapi');
-        }
-        return self::$stInstance;
-    }
-
-    function handle_req($file)
-    {
-        try
-        {
-            Log::record("file is {$file}",Log::DEBUG);
-            fcgi_header("Content-Type: text/html; charset=UTF-8");
-            if(file_exists($file))
-            {
-                if($this->is_exclude($file)) {
-                    Log::record("Call {$file}",Log::DEBUG);
-                    include $file;
-                } else {
-                    Base::mobile_control();
-                }
-            }
-            else
-            {
-                echo "no such file.";
-            }
-        }
-        catch (UnSignException $ex) {
-            merchantControl::outerr(errcode::ErrUnLogin,errcode::msg(errcode::ErrUnLogin));
-        }
-        catch (Exception $ex) {
-            merchantControl::outerr($ex->getCode(),$ex->getMessage());
-            Log::record("run_looper exception catch code={$ex->getCode()} msg={$ex->getMessage()} trace={$ex->getTraceAsString()}",Log::ERR);
-        }
-    }
-}

+ 0 - 15
test/TestRefillPhone.php

@@ -94,21 +94,6 @@ class TestRefillPhone extends TestCase
         Log::record("resp={$resp}", Log::DEBUG);
     }
 
-    public function testCardQuery()
-    {
-        $phone = '13911129867';
-//        $url = "https://test.xyzshops.cn/vapi/index.php";
-        $url = "https://ylapi.xyzshops.cn/vapi/index.php";
-
-        $params = ['mchid' => $this->mMchid,
-            'cardno' => $phone,
-            "act" => "card",
-            "op" => "query"];
-
-        $proxy = new refill_proxy($this->mKey);
-        $resp = $proxy->send($url, $params);
-    }
-
     private function make_sn()
     {
         return mt_rand(1000, 9999)

+ 0 - 37
vapi/control/card.php

@@ -1,37 +0,0 @@
-<?php
-
-require_once(BASE_HELPER_PATH . '/refill/RefillFactory.php');
-require_once(BASE_HELPER_PATH . '/mtopcard/mtopcard.php');
-require_once(BASE_HELPER_PATH . '/model/member_info.php');
-require_once(BASE_HELPER_PATH . '/mtopcard/mtopcard.php');
-
-
-//商家充值接口中心
-class cardControl extends merchantControl
-{
-    const phone_legth = 11;
-    public function __construct()
-    {
-        parent::__construct();
-    }
-
-    public function queryOp()
-    {
-        $card_no = $_GET['cardno'] ?? '';
-        $card_no = trim($card_no);
-        if(empty($card_no) || strlen($card_no) != self::phone_legth) {
-            return self::outerr(301,"号码长度不正确.");
-        }
-
-        [$validate,$card_type,$regin_no,$isTransfer,$card_state,$black] = mtopcard\valid_phone($card_no);
-
-        $result = ['card_type' => mtopcard\scard_type($card_type),
-            'region' => mtopcard\scard_region($regin_no),
-            'is_transfer' => $isTransfer ? 1 : 0,
-            'card_state' => $card_state,
-            'black' => $black ? 1 : 0
-        ];
-
-        return self::outsuccess($result);
-    }
-}

+ 0 - 103
vapi/control/merchant.php

@@ -1,103 +0,0 @@
-<?php
-
-class merchantControl extends vbaseControl
-{
-    private $mMchid;
-    private $mAdminid;
-    private $mUseKey;
-
-    public function __construct()
-    {
-        parent::__construct();
-
-        $mchid = $_POST['mchid'];
-        $mchinfo = Model('merchant')->getMerchantInfo(['mchid' => $mchid]);
-        if(empty($mchinfo)) {
-            throw new Exception("合作方ID:{$mchid}不存在");
-        }
-        else {
-            $this->mAdminid = intval($mchinfo['admin_id']);
-        }
-
-        if ($mchinfo['merchant_state'] != 1) {
-            throw new Exception("机构已被关闭。");
-        }
-
-        $ips = unserialize($mchinfo['ip_white_list']);
-
-        if(!empty($ips)) {
-            $addr = $_SERVER['REMOTE_ADDR'];
-            Log::record("request ip:{$addr}",Log::DEBUG);
-
-            if(!in_array($addr,$ips)) {
-                throw new Exception("请求地址不在白名单中");
-            }
-        }
-
-        $this->mUseKey = intval($mchinfo['use_key']);
-        if($this->mUseKey && !$this->verify_md5($mchinfo['secure_key'])) {
-            throw new UnSignException();
-        }
-
-        $this->mMchid = intval($mchid);
-    }
-
-    public function mchid() : int
-    {
-        return $this->mMchid;
-    }
-    public function adminid() : int {
-        return $this->mAdminid;
-    }
-
-    private function verify_md5($key)
-    {
-        $input = $_GET;
-        $sign = $input['sign'];
-
-        $input['sign'] = null;
-        $input['from'] = null;
-
-        $body = $this->sign_body($input);
-
-        if($this->mUseKey) {
-            $body .= "&key={$key}";
-        }
-
-        return ($sign == md5($body));
-    }
-
-    protected function check_empty($value)
-    {
-        if (!isset($value))
-            return true;
-        if ($value === null)
-            return true;
-        if (trim($value) === "")
-            return true;
-
-        return false;
-    }
-
-    private function sign_body($params)
-    {
-        ksort($params);
-
-        $content = "";
-        $i = 0;
-        foreach ($params as $k => $v)
-        {
-            if (false === $this->check_empty($v) && "@" != substr($v, 0, 1))
-            {
-                if ($i == 0) {
-                    $content .= "{$k}" . "=" . urlencode($v);
-                } else {
-                    $content .= "&" . "{$k}" . "=" . urlencode($v);
-                }
-                $i++;
-            }
-        }
-
-        return $content;
-    }
-}

+ 0 - 75
vapi/control/retail.php

@@ -1,75 +0,0 @@
-<?php
-require_once(BASE_ROOT_PATH . '/vapi/control/sapi.php');
-
-class retailControl extends vbaseControl
-{
-    public function __construct()
-    {
-        parent::__construct();
-    }
-
-    private function check_params($params)
-    {
-        $channel_code = $params['channel_code'];
-        if(empty($channel_code)) {
-            return [false, "渠道信息有误."];
-        }
-        $province = $params['province'] ?? '';
-        $city = $params['city'] ?? '';
-        $area = $params['area'] ?? '';
-        $address = $params['address'] ?? '';
-        if(empty($province) || empty($city) || empty($area) || empty($address)) {
-            return [false, "地址信息有误."];
-        }
-
-        $applicant_name = $params['applicant_name'];
-        $contact_phone = $params['contact_phone'];
-        if(empty($applicant_name) || empty($contact_phone)) {
-            return [false, "联系人信息有误."];
-        }
-        if(!preg_match('/^1\d{10}$/', $contact_phone)) {
-            return [false, "联系人电话格式有误."];
-        }
-        $retail = Model('')->table('retail')->where(['contact_phone' => $contact_phone])->find();
-        if(!empty($retail)) {
-            return [false, "此联系电话已申请过."];
-        }
-        $id_card = $_POST['id_card'];
-        if (!preg_match('#^\d{17}(\d|X)$#', $id_card)) {
-            return [false, "身份证号格式错误."];
-        }
-
-        $insert = [
-            'channel_code' => $channel_code, 'province' => $province, 'city' => $city, 'area' => $area,
-            'address' => $address, 'applicant_name' => $applicant_name, 'contact_phone' => $contact_phone,
-            'id_card' => $id_card, 'create_time' => time(), 'retail_sn' => $this->make_sn()
-        ];
-        return [true, $insert];
-    }
-
-    public function retail_recordOp()
-    {
-        [$success, $params] = $this->check_params($_POST);
-        if ($success === false) {
-            return self::outerr(300, $params);
-        }
-
-        $resp = Model('')->table('retail')->insert($params);
-        if ($resp) {
-            $sapi = new sapi();
-            $body = ['pageId' => $_POST['pageId'], 'tid' => $_POST['tid'], 'lbid' => $_POST['lbid']];
-            $resp = $sapi->send($body);
-            Log::record("sapi result {$resp}", Log::DEBUG);
-            return self::outsuccess([]);
-        } else {
-            return self::outerr(301, "录入信息失败.");
-        }
-    }
-
-    private function make_sn()
-    {
-        return 'CARD' . mt_rand(1000, 9999)
-            . sprintf('%010d', time())
-            . sprintf('%06d', (float)microtime() * 1000000);
-    }
-}

+ 0 - 51
vapi/control/sapi.php

@@ -1,51 +0,0 @@
-<?php
-
-require_once(BASE_CORE_PATH . '/framework/function/http.php');
-
-class sapi
-{
-    private $url = 'https://sapi.ads.oppomobile.com/v1/clue/sendData';
-    private $ownerId = '1000178033';
-    private $API_ID = 'cbbf0a225cd44cba81b9b6e093ded0a2';
-    private $APIKEY = '0d10124566ff41c393c0c418a3ae147a';
-
-    private function create_token()
-    {
-        $time = time();
-        $sign = sha1($this->API_ID .$this->APIKEY . $time);
-        return base64_encode($this->ownerId. ','. $this->API_ID. ',' .$time. ',' . $sign);
-    }
-
-    public function send($body)
-    {
-        $params['pageId'] = $body['pageId'];
-        $params['ownerId'] = $this->ownerId;
-        $params['ip'] = $_SERVER['REMOTE_ADDR'];
-        $params['tid'] = $body['tid'];
-        $params['lbid'] = $body['lbid'];
-        $params['transformType'] = 101;
-
-        $token = $this->create_token();
-        $header = [
-            'Content-Type: application/json',
-            "Authorization:Bearer {$token}"
-        ];
-        $params = json_encode($params);
-        Log::record("sapi send json data {$params}", Log::ERR);
-
-        $resp = http_post_data($this->url, $params, $header, $net_errno);
-        if (empty($resp)) {
-            Log::record("sapi send neterr {$net_errno}", Log::ERR);
-            return false;
-        } else {
-            Log::record($resp, Log::DEBUG);
-            $resp = json_decode($resp, true);
-            if ($resp['code'] === 0) {
-                return true;
-            } else {
-                Log::record("sapi send err {$resp['msg']}", Log::ERR);
-                return false;
-            }
-        }
-    }
-}

+ 0 - 21
vapi/control/vbase.php

@@ -1,21 +0,0 @@
-<?php
-
-class vbaseControl
-{
-    public function __construct()
-    {
-
-    }
-
-    public static function outsuccess($data)
-    {
-        joutput_data($data);
-        return true;
-    }
-
-    public static function outerr($code, $msg = '')
-    {
-        joutput_error($code, $msg);
-        return true;
-    }
-}

+ 0 - 9
vapi/index.php

@@ -1,9 +0,0 @@
-<?php
-/**
- * 手机接口初始化文件
- *
- *
- */
-
-require_once(BASE_PATH . '/control/vbase.php');
-require_once(BASE_PATH . '/control/merchant.php');

+ 0 - 45
vapi/vapi.php

@@ -1,45 +0,0 @@
-<?php
-declare(strict_types=1);
-
-define('APP_ID', 'vapi');
-define('MOBILE_SERVER',true);
-define('BASE_ROOT_PATH', str_replace('/vapi', '', dirname(__FILE__)));
-define('BASE_PATH', BASE_ROOT_PATH . '/vapi');
-
-require_once(BASE_ROOT_PATH . '/global.php');
-require_once(BASE_CORE_PATH . '/lrlz.php');
-require_once(BASE_ROOT_PATH . '/fooder.php');
-require_once(BASE_PATH . '/index.php');
-
-require_once(BASE_ROOT_PATH . '/helper/http_header.php');
-require_once(BASE_ROOT_PATH . '/helper/session.php');
-require_once(BASE_ROOT_PATH . '/helper/img_helper.php');
-require_once(BASE_ROOT_PATH . '/helper/exceptionex.php');
-require_once(BASE_ROOT_PATH . '/helper/message/msgstates.php');
-require_once(BASE_ROOT_PATH . '/helper/message/msgutil.php');
-require_once(BASE_ROOT_PATH . '/helper/message/subscriber.php');
-require_once(BASE_ROOT_PATH . '/helper/index_tab.php');
-require_once(BASE_ROOT_PATH . '/helper/bonus_helper.php');
-require_once(BASE_ROOT_PATH . '/helper/session_helper.php');
-require_once(BASE_ROOT_PATH . '/helper/sms_helper.php');
-require_once(BASE_ROOT_PATH . '/helper/model_helper.php');
-require_once(BASE_ROOT_PATH . '/helper/category_helper.php');
-require_once(BASE_ROOT_PATH . '/helper/brand_helper.php');
-require_once(BASE_ROOT_PATH . '/helper/search/tcp_client.php');
-require_once(BASE_ROOT_PATH . '/helper/search/util.php');
-require_once(BASE_ROOT_PATH . '/helper/search_param.php');
-require_once(BASE_ROOT_PATH . '/helper/goods_helper.php');
-require_once(BASE_ROOT_PATH . '/helper/session_helper.php');
-require_once(BASE_ROOT_PATH . '/helper/login_helper.php');
-require_once(BASE_ROOT_PATH . '/helper/third_author/wxauthor.php');
-require_once(BASE_ROOT_PATH . '/helper/fcode/present_manager.php');
-require_once(BASE_ROOT_PATH . '/helper/url_helper.php');
-require_once(BASE_ROOT_PATH . '/helper/activity_helper.php');
-require_once(BASE_HELPER_PATH . '/refill/util.php');
-
-Base::mobile_init();
-
-require_once(BASE_HELPER_PATH . '/fcgisrv/VApiServer.php');
-Log::record("fcgisrv\VApiServer start",Log::DEBUG);
-fcgisrv\VApiServer::instance()->run_looper();
-