no commit message

This commit is contained in:
雨中磐石
2024-10-18 15:27:40 +08:00
parent 9a2a3a2c8a
commit 559c388ea0
103 changed files with 2021 additions and 783 deletions

View File

@@ -52,6 +52,29 @@ class kaoqinClassAction extends apiAction
$this->showreturn($barr);
}
/**
* 获取定位的URL
*/
//private $dwurl = 'http://127.0.0.1/app/rockfile/index.php?m=dingwei';
private $dwurl = 'aHR0cHM6Ly9maWxlLnJvY2tvYS5jb20vaW5kZXgucGhwP209ZGluZ3dlaQ::';
public function dwurlAction()
{
$dwrand = $this->get('dwrand');
return returnsuccess(array(
'url' => $this->jm->base64decode($this->dwurl).'&dwrand='.$dwrand.'',
'dwrand' => $dwrand
));
}
public function dwgetAction()
{
$dwrand = $this->get('dwrand');
$url = $this->jm->base64decode($this->dwurl).'&a=getdw&dwrand='.$dwrand.'';
$cont = c('curl')->getcurl($url);
if(!$cont)$cont = returnerror('无法获取');
return $cont;
}
/**

View File

@@ -0,0 +1,28 @@
<?php
/**
* 客服
*/
class rockkefuClassAction extends apiAction
{
public function initAction()
{
parent::initAction();
$type = @$_SERVER['REQUEST_METHOD'];
$cans = $_GET;
$cans['user'] = $this->userrs['user'];
unset($cans['m']);
unset($cans['a']);
$url = c('rockkefu')->geturlstr('openkefu',A, $cans);
if($type=='POST'){
$result = c('curl')->postcurl($url, $_POST);
}else{
$result = c('curl')->getcurl($url);
}
if(!$result)$result = json_encode(returnerror('无法访问'));
echo $result;
exit;
}
}

View File

@@ -276,6 +276,7 @@ class uploadClassAction extends apiAction
return $this->fileinfoShow($fileid, $type, $ismobile);
}
private $frs,$loadyuan;
public function fileinfoShow($fileid, $type, $ismobile)
{
$fobj = m('file');