27 lines
682 B
PHP
27 lines
682 B
PHP
<?php
|
|
namespace app\mp\controller;
|
|
use app\Controller;
|
|
class Saascloud extends Controller
|
|
{
|
|
/**
|
|
* SAAS交付
|
|
* @return type
|
|
*/
|
|
public function index()
|
|
{
|
|
$data = input('');
|
|
if ($data['type']) {
|
|
$cloud='app\\mp\\model\\'.ucfirst($data['type']) . 'Order';
|
|
$model=new $cloud();
|
|
switch ($model->outFormat()) {
|
|
case 'json':
|
|
$info = $model->outDataInfo();
|
|
return json($info);
|
|
case 'xml':
|
|
break;
|
|
}
|
|
} else {
|
|
return json(['code' => '41000', 'msg' => '类型不正确']);
|
|
}
|
|
}
|
|
} |