admin/addon/saasagent/shop/controller/Cloud.php

55 lines
1.3 KiB
PHP

<?php
namespace addon\saasagent\shop\controller;
use app\model\system\Config;
class Cloud extends SaasBsae
{
/***
* 腾讯云市场
* @return mixed|\think\response\Json
*/
public function txcloud(){
$config=new Config();
$where= [['site_id', '=', $this->site_id], ['app_module', '=', $this->app_module], ['config_key', '=', 'TXCLOUD_CONFIG']];
if(request()->isAjax()){
$appid=input('appid');
$token=input('token');
$data=[
'appid'=>$appid,
'token'=>$token,
];
$res= $config->setConfig($data,'腾讯云市场',1,$where);
return json($res);
}
$info=$config->getConfig($where)['data']['value'];
$this->assign('config_info',$info);
$url=request()->domain()."/mp/saascloud/index/type/txcloud/site_id/{$this->site_id}.html";
$this->assign('auth_url',$url);
$this->forthMenu();
return $this->fetch('cloud/txcloud');
}
public function directcloud(){
echo '研发中..';
}
public function alicloud(){
echo '研发中..';
}
public function hwcloud(){
echo '研发中..';
}
public function baiducloud(){
echo '研发中..';
}
public function othercloud(){
echo '研发中..';
}
}