Compare commits
33 Commits
mkm-patch-
...
main
Author | SHA1 | Date | |
---|---|---|---|
f7379b663a | |||
d13c5c16b0 | |||
776ee0bfbc | |||
1182ee6279 | |||
dcaca31635 | |||
8d085e688e | |||
5e378a3372 | |||
83fe8c4539 | |||
95514a0da6 | |||
d05a8c842d | |||
dd681470d8 | |||
be9781f170 | |||
6e291277d0 | |||
c26790ebbe | |||
08fa715e73 | |||
4875159679 | |||
e3dc0985bd | |||
3a1f256fe9 | |||
d1a4e5acdf | |||
d71b3ddefa | |||
850773a2fd | |||
5b37749696 | |||
8aa2740b50 | |||
8deb9a32bb | |||
2439429e4c | |||
d3c4bf923f | |||
b55503650c | |||
ef846fe23d | |||
94676eb4ea | |||
7ea7dde782 | |||
407553baaf | |||
98181dfbf9 | |||
ba6d76de7e |
@ -4,6 +4,7 @@ namespace app\admin\controller;
|
||||
|
||||
use app\admin\logic\beforehand_order_cart_info\BeforehandOrderCartInfoLogic;
|
||||
use app\admin\logic\product_source_link_info\ProductSourceLinkInfoLogic;
|
||||
use app\admin\logic\inventory_transfer_order\InventoryTransferOrderLogic;
|
||||
use app\common\model\beforehand_order\BeforehandOrder;
|
||||
use app\common\model\beforehand_order_cart_info\BeforehandOrderCartInfo;
|
||||
use app\common\model\CeshiCopy;
|
||||
@ -16,6 +17,8 @@ use app\common\model\store_product_group_price\StoreProductGroupPrice;
|
||||
use app\common\model\StoreProductPriceList;
|
||||
use app\common\model\warehouse_order\WarehouseOrder;
|
||||
use app\common\model\warehouse_product\WarehouseProduct;
|
||||
use app\common\model\store_branch_product\StoreBranchProduct;
|
||||
use app\common\model\system_store\SystemStore;
|
||||
use PhpOffice\PhpSpreadsheet\IOFactory;
|
||||
use support\exception\BusinessException;
|
||||
use support\Redis;
|
||||
@ -25,8 +28,8 @@ class LocalController extends BaseAdminController
|
||||
{
|
||||
|
||||
public $notNeedLogin = ['activityPrice', 'searchProduct', 'setPrice', 'index', 'updateProductPriceList', 'importOrder', 'warehousing', 'outbound'];
|
||||
|
||||
public $ids = [1829,1828,1827,1826,1825,1824,1823,1821,1820,1814,1813,1811,1810,1809,1808,1807,1806,1800,1799,1798,1796,1795,1794,1793,1792,1791,1790,1789,1788,1787,1786,1785,1784,1783,1782,1781,1780,1779,1778,1777,1776,1775,1774,1773,1772,1771,1770,1768,1765,1764,1763,1762,1761,1760,1759,1758,1757,1756,1755,1754,1753,1752,1751,1750,1749,1748,1747,1746,1745,1744,1743,1742,1741,1740,1739,1738,1737,1736,1735,1733,1732,1731,1730,1729,1728,1727,1726,1725,1724,1723,1722,1720,1719,1718,1717,1716,1715,1714,1713,1712,1711,1710,1709,1708,1707,1706,1705,1704,1703,1701,1700,1699,1698,1697,1696,1695,1694,1693,1692,1691,1690,1689,1688,1687,1686,1685,1684,1683,1682,1681,1680,1679,1678,1677,1676,1675,1674,1673,1672,1671,1670,1668,1667,1666,1665,1664,1663,1660,1659,1658,1657,1656,1655,1654,1652,1651,1650,1649,1648,1647,1646,1645,1644,1643,1642,1641,1640,1639,1638,1637,1636,1635,1634,1633,1632,1631,1630,1629,1628,1627,1626,1623,1622];
|
||||
|
||||
public $ids = [1829, 1828, 1827, 1826, 1825, 1824, 1823, 1821, 1820, 1814, 1813, 1811, 1810, 1809, 1808, 1807, 1806, 1800, 1799, 1798, 1796, 1795, 1794, 1793, 1792, 1791, 1790, 1789, 1788, 1787, 1786, 1785, 1784, 1783, 1782, 1781, 1780, 1779, 1778, 1777, 1776, 1775, 1774, 1773, 1772, 1771, 1770, 1768, 1765, 1764, 1763, 1762, 1761, 1760, 1759, 1758, 1757, 1756, 1755, 1754, 1753, 1752, 1751, 1750, 1749, 1748, 1747, 1746, 1745, 1744, 1743, 1742, 1741, 1740, 1739, 1738, 1737, 1736, 1735, 1733, 1732, 1731, 1730, 1729, 1728, 1727, 1726, 1725, 1724, 1723, 1722, 1720, 1719, 1718, 1717, 1716, 1715, 1714, 1713, 1712, 1711, 1710, 1709, 1708, 1707, 1706, 1705, 1704, 1703, 1701, 1700, 1699, 1698, 1697, 1696, 1695, 1694, 1693, 1692, 1691, 1690, 1689, 1688, 1687, 1686, 1685, 1684, 1683, 1682, 1681, 1680, 1679, 1678, 1677, 1676, 1675, 1674, 1673, 1672, 1671, 1670, 1668, 1667, 1666, 1665, 1664, 1663, 1660, 1659, 1658, 1657, 1656, 1655, 1654, 1652, 1651, 1650, 1649, 1648, 1647, 1646, 1645, 1644, 1643, 1642, 1641, 1640, 1639, 1638, 1637, 1636, 1635, 1634, 1633, 1632, 1631, 1630, 1629, 1628, 1627, 1626, 1623, 1622];
|
||||
|
||||
public function warehousing()
|
||||
{
|
||||
@ -513,5 +516,53 @@ class LocalController extends BaseAdminController
|
||||
throw new BusinessException($e->getMessage());
|
||||
}
|
||||
}
|
||||
public function importStorege()
|
||||
{
|
||||
$file = $this->request->file('file');
|
||||
$reader = IOFactory::createReader('Xlsx');
|
||||
$spreadsheet = $reader->load($file->getRealPath());
|
||||
$sheets = $spreadsheet->getActiveSheet()->toArray();
|
||||
$new_params = [];
|
||||
$params = [];
|
||||
$system_store_id = 0;
|
||||
$params['product_arr'] = [];
|
||||
foreach ($sheets as $key => $row) {
|
||||
if ($key == 0) {
|
||||
continue;
|
||||
}
|
||||
if (!$system_store_id) {
|
||||
$system_store_id = SystemStore::where('name', $row[1])->value('id');
|
||||
}
|
||||
$product = StoreBranchProduct::where('product_id', $row[0])->where('store_id', $system_store_id)->field('id,product_id,stock')->findOrEmpty();
|
||||
if ($row[10] == $product->stock && intval($product->stock) > 0) {
|
||||
$arr = [
|
||||
'nums' => $row[10],
|
||||
'product_id' => $product->product_id,
|
||||
'purchase' => 0,
|
||||
'total_price' => $product->total_price,
|
||||
];
|
||||
$params['product_arr'][] = $arr;
|
||||
} else {
|
||||
$arr = [];
|
||||
$arr['product_id'] = $row[0];
|
||||
$arr['product_name'] = $row[2] ?? '';
|
||||
$arr['store_id'] = $system_store_id;
|
||||
$arr['nums'] = $row[10] ?? 0;
|
||||
$arr['stock'] = $product->stock ?? 0;
|
||||
$new_params[] = $arr;
|
||||
}
|
||||
}
|
||||
// 生成铺货单
|
||||
$params['mark'] = "门店铺货-excel导入";
|
||||
$params['one_id'] = $system_store_id; //门店id
|
||||
$params['one_type'] = 1; //1门店2仓库
|
||||
$params['two_id'] = 1; //1海吉星仓库
|
||||
$params['two_type'] = 2; //1门店2仓库
|
||||
$params['types'] = 1; //0减库存 1不减库存
|
||||
|
||||
}
|
||||
InventoryTransferOrderLogic::add($params, $this->adminId);
|
||||
$new_params = json_encode($new_params, true);
|
||||
file_put_contents(public_path() . '/output.text', $new_params);
|
||||
return $this->success('导入成功');
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,8 @@ use app\admin\controller\BaseAdminController;
|
||||
use app\admin\lists\inventory_transfer\InventoryTransferLists;
|
||||
use app\admin\logic\inventory_transfer\InventoryTransferLogic;
|
||||
use app\admin\validate\inventory_transfer\InventoryTransferValidate;
|
||||
|
||||
use app\admin\logic\inventory_transfer_order\InventoryTransferOrderLogic;
|
||||
use app\common\service\xlsx\InventoryTransferXlsx;
|
||||
|
||||
/**
|
||||
* 商品调拨控制器
|
||||
@ -38,8 +39,8 @@ class InventoryTransferController extends BaseAdminController
|
||||
*/
|
||||
public function add()
|
||||
{
|
||||
$params = (new InventoryTransferValidate())->post()->goCheck('add');
|
||||
$result = InventoryTransferLogic::add($params,$this->adminId);
|
||||
$params = $this->request->post();
|
||||
$result = InventoryTransferLogic::add($params, $this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
@ -91,6 +92,4 @@ class InventoryTransferController extends BaseAdminController
|
||||
$result = InventoryTransferLogic::detail($params);
|
||||
return $this->data($result);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,8 @@ use app\admin\controller\BaseAdminController;
|
||||
use app\admin\lists\inventory_transfer_order\InventoryTransferOrderLists;
|
||||
use app\admin\logic\inventory_transfer_order\InventoryTransferOrderLogic;
|
||||
use app\admin\validate\inventory_transfer_order\InventoryTransferOrderValidate;
|
||||
|
||||
use app\common\service\xlsx\InventoryTransferXlsx;
|
||||
use app\common\model\inventory_transfer\InventoryTransfer;
|
||||
|
||||
/**
|
||||
* 商品调拨订单控制器
|
||||
@ -39,7 +40,7 @@ class InventoryTransferOrderController extends BaseAdminController
|
||||
public function add()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
$result = InventoryTransferOrderLogic::add($params,$this->adminId);
|
||||
$result = InventoryTransferOrderLogic::add($params, $this->adminId);
|
||||
if (true === $result) {
|
||||
return $this->success('添加成功', [], 1, 1);
|
||||
}
|
||||
@ -104,4 +105,15 @@ class InventoryTransferOrderController extends BaseAdminController
|
||||
return $this->success('删除成功', [], 1, 1);
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* 导出调拨表格
|
||||
*/
|
||||
public function export()
|
||||
{
|
||||
$params = $this->request->post();
|
||||
$xlsx = new InventoryTransferXlsx();
|
||||
$order = InventoryTransferOrderLogic::detail($params);
|
||||
$file_path = $xlsx->export($order['product_list'], $order);
|
||||
return $this->success('导出成功', ['url' => $file_path]);
|
||||
}
|
||||
}
|
||||
|
@ -968,25 +968,14 @@ class BeforehandOrderLogic extends BaseLogic
|
||||
$v['store_name'] = $find['store_name'];
|
||||
$v['mark'] = $find['after_sales'];
|
||||
if (isset($params['type']) && $params['type'] == 2) {
|
||||
$price = $v['cost'];
|
||||
$v['pay_price'] = bcmul($price, $v['nums'], 2);
|
||||
$v['price'] = $v['vip_price']; //出库单价
|
||||
$v['purchase'] = $v['cost']; //高级会员单,供货价=商户价
|
||||
} else {
|
||||
if ($v['vip_price'] > 0) {
|
||||
$v['pay_price'] = bcmul($v['vip_price'], $v['nums'], 2);
|
||||
$price = $v['vip_price'];
|
||||
} else {
|
||||
$price = StoreProductGroupPrice::where('product_id', $v['product_id'])->where('group_id', $user_ship)->value('price');
|
||||
if ($price > 0) {
|
||||
$v['pay_price'] = bcmul($price, $v['nums'], 2);
|
||||
} else {
|
||||
$price = $find['cost'];
|
||||
$v['pay_price'] = bcmul($price, $v['nums'], 2);
|
||||
}
|
||||
WarehouseProduct::where('id', $v['id'])->update(['vip_price' => $price]);
|
||||
}
|
||||
$v['purchase'] = $v['vip_price'] > 0 ? $v['vip_price'] : $v['price']; //会员单,供货价=会员价
|
||||
}
|
||||
|
||||
$v['purchase'] = $price;
|
||||
$v['total_price'] = bcmul($v['price'], $v['nums'], 2); //出库总价
|
||||
$v['pay_price'] = bcmul($v['purchase'], $v['nums'], 2); //供货总价
|
||||
$v['profit'] = bcsub($v['total_price'], $v['pay_price'], 2);
|
||||
$total_profit = bcadd($total_profit, $v['profit'], 2);
|
||||
$pay_price = bcadd($pay_price, $v['pay_price'], 2);
|
||||
|
@ -4,10 +4,12 @@ namespace app\admin\logic\inventory_transfer;
|
||||
|
||||
use app\admin\logic\warehouse_product\WarehouseProductLogic;
|
||||
use app\common\model\inventory_transfer\InventoryTransfer;
|
||||
use app\admin\logic\inventory_transfer_order\InventoryTransferOrderLogic;
|
||||
use app\common\logic\BaseLogic;
|
||||
use app\common\model\store_branch_product\StoreBranchProduct;
|
||||
use app\common\model\store_product\StoreProduct;
|
||||
use app\common\model\warehouse_product_storege\WarehouseProductStorege;
|
||||
use app\common\model\inventory_transfer_order\InventoryTransferOrder;
|
||||
use support\exception\BusinessException;
|
||||
use think\facade\Db;
|
||||
|
||||
@ -28,9 +30,62 @@ class InventoryTransferLogic extends BaseLogic
|
||||
* @author admin
|
||||
* @date 2024/08/13 16:18
|
||||
*/
|
||||
public static function add(array $params,$admin_id=0): bool
|
||||
public static function add(array $params, $admin_id = 0)
|
||||
{
|
||||
return true;
|
||||
$find = InventoryTransferOrder::where('id', $params['oid'])->find()->toArray();
|
||||
if (empty($params['product_arr'])) {
|
||||
throw new BusinessException('请选择商品');
|
||||
}
|
||||
$productIds = array_column($params['product_arr'], 'id');
|
||||
if ($find['one_type'] == 1) {
|
||||
$outProducts = StoreBranchProduct::whereIn('product_id', $productIds)->where('store_id', $find['one_id'])->field('id,product_id,stock')->select()->toArray();
|
||||
} else {
|
||||
$outProducts = WarehouseProductStorege::whereIn('product_id', $productIds)->where('warehouse_id', $find['one_id'])->field('id,product_id,nums stock')->select()->toArray();
|
||||
}
|
||||
$outProducts = reset_index($outProducts, 'product_id');
|
||||
if ($find['two_type'] == 1) {
|
||||
$inProducts = StoreBranchProduct::whereIn('product_id', $productIds)->where('store_id', $find['two_id'])->field('id,product_id,stock')->select()->toArray();
|
||||
} else {
|
||||
$inProducts = WarehouseProductStorege::whereIn('product_id', $productIds)->where('warehouse_id', $find['two_id'])->field('id,product_id,nums stock')->select()->toArray();
|
||||
}
|
||||
$inProducts = reset_index($inProducts, 'product_id');
|
||||
$insert = [];
|
||||
Db::startTrans();
|
||||
try {
|
||||
$insert = [];
|
||||
foreach ($params['product_arr'] as $v) {
|
||||
$outProduct = !empty($outProducts[$v['id']]) ? $outProducts[$v['id']] : ['stock' => 0, 'id' => 0, 'product_id' => $v['id']];
|
||||
$inProduct = !empty($inProducts[$v['id']]) ? $inProducts[$v['id']] : ['stock' => 0, 'id' => 0, 'product_id' => $v['id']];
|
||||
if ($outProduct['stock'] < $v['nums']) {
|
||||
throw new BusinessException("出库商品库存不足 {$outProduct['product_id']} 调拨数量不能大于当前仓库库存");
|
||||
continue;
|
||||
}
|
||||
$insert[] = [
|
||||
'oid' => $find['id'],
|
||||
'product_id' => $v['id'],
|
||||
'nums' => $v['nums'],
|
||||
'remark' => $v['remark'],
|
||||
'one_before_nums' => $outProduct['stock'],
|
||||
'one_after_nums' => bcsub($outProduct['stock'], $v['nums']),
|
||||
'two_before_nums' => $inProduct['stock'],
|
||||
'two_after_nums' => bcadd($inProduct['stock'], $v['nums']),
|
||||
'one_type' => $find['one_type'],
|
||||
'two_type' => $find['two_type'],
|
||||
'one_id' => $find['one_id'],
|
||||
'two_id' => $find['two_id'],
|
||||
'create_time' => time(),
|
||||
];
|
||||
}
|
||||
InventoryTransfer::insertAll($insert);
|
||||
if ($find['two_type'] == 1 && $find['status'] == 1) {
|
||||
InventoryTransferOrderLogic::audit($find, $insert, $admin_id);
|
||||
}
|
||||
Db::commit();
|
||||
return true;
|
||||
} catch (\Throwable $e) {
|
||||
Db::rollback();
|
||||
throw new BusinessException($e->getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -32,9 +32,9 @@ class InventoryTransferOrderLogic extends BaseLogic
|
||||
* @author admin
|
||||
* @date 2025/01/24 09:59
|
||||
*/
|
||||
public static function add(array $params,$admin_id): bool
|
||||
public static function add(array $params, $admin_id): bool
|
||||
{
|
||||
$types=$params['types']??0;
|
||||
$types = $params['types'] ?? 0;
|
||||
if (empty($params['product_arr'])) {
|
||||
throw new BusinessException('请选择商品');
|
||||
}
|
||||
@ -65,6 +65,7 @@ class InventoryTransferOrderLogic extends BaseLogic
|
||||
$insert[] = [
|
||||
'product_id' => $v['product_id'],
|
||||
'nums' => $v['nums'],
|
||||
'remark' => $v['remark'],
|
||||
'one_before_nums' => $outProduct['stock'],
|
||||
'one_after_nums' => bcsub($outProduct['stock'], $v['nums']),
|
||||
'two_before_nums' => $inProduct['stock'],
|
||||
@ -76,21 +77,21 @@ class InventoryTransferOrderLogic extends BaseLogic
|
||||
'create_time' => time(),
|
||||
];
|
||||
}
|
||||
$order=InventoryTransferOrder::create([
|
||||
$order = InventoryTransferOrder::create([
|
||||
'order_id' => getNewOrderId('DB'),
|
||||
'one_type' => $params['one_type'],
|
||||
'two_type' => $params['two_type'],
|
||||
'one_id' => $params['one_id'],
|
||||
'two_id' => $params['two_id'],
|
||||
'types' => $types,
|
||||
'mark' => $params['mark']??'',
|
||||
'mark' => $params['mark'] ?? '',
|
||||
'status' => ($params['two_type'] == 2 && $types == 0) ? 0 : 1,
|
||||
]);
|
||||
foreach ($insert as $k => $v) {
|
||||
$insert[$k]['oid'] = $order['id'];
|
||||
}
|
||||
InventoryTransfer::insertAll($insert);
|
||||
if($types==0 && $params['two_type']==1){
|
||||
if ($types == 0 && $params['two_type'] == 1) {
|
||||
self::audit($params, $insert, $admin_id);
|
||||
}
|
||||
|
||||
@ -108,17 +109,17 @@ class InventoryTransferOrderLogic extends BaseLogic
|
||||
$products = InventoryTransfer::where('oid', $order['id'])->select()->toArray();
|
||||
}
|
||||
foreach ($products as $v) {
|
||||
if($order['one_type']==1){
|
||||
$find=StoreBranchProduct::where('product_id', $v['product_id'])->where('store_id', $order['one_id'])->find();
|
||||
$find->save(['stock' =>bcsub( $find['stock'],$v['nums'],2)]);
|
||||
SqlChannelLog('StoreBranchProduct', $find['id'], $v['nums'], -1, Request()->url(),$admin_id);
|
||||
if ($order['one_type'] == 1) {
|
||||
$find = StoreBranchProduct::where('product_id', $v['product_id'])->where('store_id', $order['one_id'])->find();
|
||||
$find->save(['stock' => bcsub($find['stock'], $v['nums'], 2)]);
|
||||
SqlChannelLog('StoreBranchProduct', $find['id'], $v['nums'], -1, Request()->url(), $admin_id);
|
||||
} elseif ($order['one_type'] == 2) {
|
||||
$find=WarehouseProductStorege::where('product_id', $v['product_id'])->where('warehouse_id', $order['one_id'])->find();
|
||||
$find->save(['nums' =>bcsub( $find['nums'],$v['nums'],2)]);
|
||||
SqlChannelLog('WarehouseProductStorege', $find['id'], $v['nums'], -1, Request()->url(),$admin_id);
|
||||
$find = WarehouseProductStorege::where('product_id', $v['product_id'])->where('warehouse_id', $order['one_id'])->find();
|
||||
$find->save(['nums' => bcsub($find['nums'], $v['nums'], 2)]);
|
||||
SqlChannelLog('WarehouseProductStorege', $find['id'], $v['nums'], -1, Request()->url(), $admin_id);
|
||||
}
|
||||
if($order['two_type']==1){
|
||||
$find=StoreBranchProduct::where('product_id', $v['product_id'])->where('store_id', $order['two_id'])->find();
|
||||
if ($order['two_type'] == 1) {
|
||||
$find = StoreBranchProduct::where('product_id', $v['product_id'])->where('store_id', $order['two_id'])->find();
|
||||
if (empty($find)) {
|
||||
$storeProduct = StoreProduct::field('top_cate_id,two_cate_id,cate_id,store_name,image,price,vip_price,cost,purchase,keyword,bar_code,store_info,rose,product_type,unit,batch,store_batch,label_id,is_lack,manufacturer_information')->where('id', $v['product_id'])->find()->toArray();
|
||||
$find = new StoreBranchProduct();
|
||||
@ -128,11 +129,11 @@ class InventoryTransferOrderLogic extends BaseLogic
|
||||
$find->setAttrs($storeProduct);
|
||||
$find->save();
|
||||
} else {
|
||||
$find->save(['stock' =>bcadd( $find['stock'],$v['nums'],2)]);
|
||||
$find->save(['stock' => bcadd($find['stock'], $v['nums'], 2)]);
|
||||
}
|
||||
SqlChannelLog('StoreBranchProduct', $find['id'], $v['nums'], 1, Request()->url(),$admin_id);
|
||||
SqlChannelLog('StoreBranchProduct', $find['id'], $v['nums'], 1, Request()->url(), $admin_id);
|
||||
} elseif ($order['two_type'] == 2) {
|
||||
$find=WarehouseProductStorege::where('product_id', $v['product_id'])->where('warehouse_id', $order['two_id'])->find();
|
||||
$find = WarehouseProductStorege::where('product_id', $v['product_id'])->where('warehouse_id', $order['two_id'])->find();
|
||||
if (empty($find)) {
|
||||
$find = new WarehouseProductStorege();
|
||||
$find->warehouse_id = $order['two_id'];
|
||||
@ -140,9 +141,9 @@ class InventoryTransferOrderLogic extends BaseLogic
|
||||
$find->nums = $v['nums'];
|
||||
$find->save();
|
||||
} else {
|
||||
$find->save(['nums' =>bcadd( $find['nums'],$v['nums'],2)]);
|
||||
$find->save(['nums' => bcadd($find['nums'], $v['nums'], 2)]);
|
||||
}
|
||||
SqlChannelLog('WarehouseProductStorege', $find['id'], $v['nums'], 1, Request()->url(),$admin_id);
|
||||
SqlChannelLog('WarehouseProductStorege', $find['id'], $v['nums'], 1, Request()->url(), $admin_id);
|
||||
}
|
||||
InventoryTransferOrder::where('id', $order['id'])->update(['status' => 1]);
|
||||
|
||||
@ -209,28 +210,28 @@ class InventoryTransferOrderLogic extends BaseLogic
|
||||
*/
|
||||
public static function detail($params): array
|
||||
{
|
||||
$data= InventoryTransferOrder::findOrEmpty($params['id']);
|
||||
$type_name='';
|
||||
if($data->one_type==1){
|
||||
$data->one_name=SystemStore::where('id',$data->one_id)->value('name');
|
||||
$type_name='门店转';
|
||||
}else{
|
||||
$data->one_name=Warehouse::where('id',$data->one_id)->value('name');
|
||||
$type_name='仓库转';
|
||||
$data = InventoryTransferOrder::findOrEmpty($params['id']);
|
||||
$type_name = '';
|
||||
if ($data->one_type == 1) {
|
||||
$data->one_name = SystemStore::where('id', $data->one_id)->value('name');
|
||||
$type_name = '门店转';
|
||||
} else {
|
||||
$data->one_name = Warehouse::where('id', $data->one_id)->value('name');
|
||||
$type_name = '仓库转';
|
||||
}
|
||||
if($data->two_type==1){
|
||||
$type_name.='门店';
|
||||
$data->two_name=SystemStore::where('id',$data->two_id)->value('name');
|
||||
}else{
|
||||
$type_name.='仓库';
|
||||
$data->two_name=Warehouse::where('id',$data->two_id)->value('name');
|
||||
if ($data->two_type == 1) {
|
||||
$type_name .= '门店';
|
||||
$data->two_name = SystemStore::where('id', $data->two_id)->value('name');
|
||||
} else {
|
||||
$type_name .= '仓库';
|
||||
$data->two_name = Warehouse::where('id', $data->two_id)->value('name');
|
||||
}
|
||||
$data->type_name=$type_name;
|
||||
$data['product_list']=InventoryTransfer::where('oid',$params['id'])->select()->each(function ($item) {
|
||||
$find= StoreProduct::where('id',$item->product_id)->withTrashed()->field('store_name')->find();
|
||||
$item->store_name=$find['store_name'];
|
||||
$data->type_name = $type_name;
|
||||
$data['product_list'] = InventoryTransfer::where('oid', $params['id'])->select()->each(function ($item) {
|
||||
$find = StoreProduct::where('id', $item->product_id)->withTrashed()->field('store_name')->find();
|
||||
$item->store_name = $find['store_name'] ?? '';
|
||||
})
|
||||
->toArray();
|
||||
->toArray();
|
||||
return $data->toArray();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -300,7 +300,7 @@ class ProductSourceLinkInfoLogic extends BaseLogic
|
||||
'warehouse_id' => $this->info['warehouse_id'],
|
||||
'store_id' => $this->info['store_id'],
|
||||
'oid' => $item['oid'],
|
||||
'types' => empty($this->info['types']) ? ProductSourceLinkInfo::TypeOut: $this->info['types'],
|
||||
'types' => empty($this->info['types']) ? ProductSourceLinkInfo::TypeOut : $this->info['types'],
|
||||
'link_id' => $this->info['link_id'],
|
||||
'from_id' => $item['id'],
|
||||
'nums' => $needNum,
|
||||
@ -474,10 +474,10 @@ class ProductSourceLinkInfoLogic extends BaseLogic
|
||||
foreach ($list as $item) {
|
||||
$currentNum = max(bcsub($item['current_nums'], $needNum, 2), 0);
|
||||
if ($item['current_nums'] > $needNum) {
|
||||
[$update, $insert] = $this->getInsertAndUpdate2($update, $insert, $currentNum, $item, $needNum);
|
||||
[$update, $insert] = $this->getInsertAndUpdate($update, $insert, $currentNum, $item, $needNum);
|
||||
break;
|
||||
} else {
|
||||
[$update, $insert] = $this->getInsertAndUpdate2($update, $insert, 0, $item, $item['current_nums']);
|
||||
[$update, $insert] = $this->getInsertAndUpdate($update, $insert, 0, $item, $item['current_nums']);
|
||||
}
|
||||
$needNum = $needNum - $item['current_nums'];
|
||||
}
|
||||
@ -542,5 +542,4 @@ class ProductSourceLinkInfoLogic extends BaseLogic
|
||||
(new ProductSourceLinkInfo())->insertAll($insert);
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -217,7 +217,7 @@ class PurchaseProductOfferLogic extends BaseLogic
|
||||
$offer = PurchaseProductOffer::where(['id' => $params['id']])->find();
|
||||
$lastPrice = PurchaseProductOffer::where(['product_id' => $offer['product_id']])->where('status', 1)->order('id desc')->value('price');
|
||||
$currentPrice = bcdiv($params['total_price'], $params['buyer_nums'], 2);
|
||||
if (!empty($lastPrice) && ($currentPrice > $lastPrice * 3 || $currentPrice < $lastPrice / 3)) {
|
||||
if ($lastPrice > 0 && ($currentPrice > $lastPrice * 3 || $currentPrice < $lastPrice / 3)) {
|
||||
throw new BusinessException('价格异常,请重新输入');
|
||||
}
|
||||
// $uid=Admin::where('id',$params['admin_id'])->value('uid');
|
||||
|
@ -123,7 +123,11 @@ class WarehouseOrderLogic extends BaseLogic
|
||||
$data['purchase'] = $v['prices'];
|
||||
$data['total_price'] = bcmul($v['prices'], $v['nums'], 2);
|
||||
}
|
||||
WarehouseProductLogic::add($data,1,$params['admin_id']);
|
||||
if ($data['financial_pm'] == 1) {
|
||||
WarehouseProductLogic::add($data,1,$params['admin_id']);
|
||||
} else {
|
||||
WarehouseProductLogic::setOutbound($data,1,$params['admin_id']);
|
||||
}
|
||||
}
|
||||
$find = WarehouseProduct::where('oid', $params['id'])->field('sum(nums) as nums,sum(total_price) as total_price')->find();
|
||||
if ($find) {
|
||||
|
@ -85,6 +85,9 @@ class CartList extends BaseAdminDataLists implements ListsSearchInterface, Lists
|
||||
if ($off_activity == 0 && $user_ship == 5 && $product['top_cate_id'] == 15189) {
|
||||
$product['price'] = $product['cost'];
|
||||
}
|
||||
if ($user_ship == 4) {
|
||||
$product['price'] = $product['cost'];
|
||||
}
|
||||
$item['goods_total_price'] = bcmul($item['cart_num'], $product['price'], 2);
|
||||
$this->total_price = bcadd($this->total_price, $item['goods_total_price'], 2);
|
||||
$item['batch'] = $product['batch'];
|
||||
|
@ -52,7 +52,7 @@ class OrderList extends BaseAdminDataLists implements ListsSearchInterface
|
||||
->each(function ($item) {
|
||||
$item['goods_list'] = StoreOrderCartInfo::where('oid', $item['id'])
|
||||
->field('id,product_id,cart_num,verify_code,is_writeoff,writeoff_time,cart_info,status')
|
||||
->limit(3)
|
||||
// ->limit(3)
|
||||
->select()
|
||||
->each(function ($v) use ($item) {
|
||||
$v['store_name'] = '';
|
||||
|
111
app/common/service/xlsx/InventoryTransferXlsx.php
Normal file
111
app/common/service/xlsx/InventoryTransferXlsx.php
Normal file
@ -0,0 +1,111 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\service\xlsx;
|
||||
|
||||
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
||||
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
|
||||
use PhpOffice\PhpSpreadsheet\Style\Alignment;
|
||||
use PhpOffice\PhpSpreadsheet\Style\Border;
|
||||
use Webman\Exception\BusinessException;
|
||||
|
||||
class InventoryTransferXlsx
|
||||
{
|
||||
|
||||
public function export($data, $order)
|
||||
{
|
||||
$spreadsheet = new Spreadsheet();
|
||||
$sheet = $spreadsheet->getActiveSheet();
|
||||
$sheet->setTitle('调拨订单'); // 设置列宽
|
||||
$sheet->getDefaultRowDimension()->setRowHeight(20); // 设置行高
|
||||
$sheet->getDefaultColumnDimension()->setWidth(20); // 设置列宽
|
||||
$sheet->getPageSetup()->setFitToPage(true); // 自动适应页面大小
|
||||
|
||||
$sheet->getPageSetup()->setHorizontalCentered(true); // 页面水平居中
|
||||
$sheet->getPageSetup()->setVerticalCentered(true); // 页面垂直居中
|
||||
$sheet->getPageMargins()->setTop(0.5); // 上边距
|
||||
$sheet->getPageMargins()->setBottom(0.5); // 下边距
|
||||
$sheet->getPageMargins()->setLeft(0.5); // 左边距
|
||||
$sheet->getPageMargins()->setRight(0.5); // 右边距
|
||||
$sheet->getPageMargins()->setHeader(0.5); // 页眉边距
|
||||
$sheet->getPageMargins()->setFooter(0.5); // 页脚边距
|
||||
|
||||
$sheet->getStyle('A1:H1')->getFont()->setBold(true); // 设置标题字体加粗
|
||||
$sheet->getStyle('A1:H1')->getAlignment()->setHorizontal(Alignment::HORIZONTAL_CENTER); // 设置标题水平居中
|
||||
$sheet->getStyle('A1:H1')->getAlignment()->setVertical(Alignment::VERTICAL_CENTER); // 设置标题垂直居中
|
||||
$sheet->getStyle('A2:H2')->getFont()->setBold(true); // 设置标题字体加粗
|
||||
$sheet->getStyle('A2:H2')->getAlignment()->setHorizontal(Alignment::HORIZONTAL_CENTER); // 设置标题水平居中
|
||||
|
||||
// 合并单元格并设置标题
|
||||
$sheet->mergeCells('A1:G1')->setCellValue('A1', '调拨订单');
|
||||
$sheet->setCellValue('A2', '订单编号');
|
||||
$sheet->setCellValue('B2', '转出方');
|
||||
$sheet->setCellValue('C2', '方式');
|
||||
$sheet->setCellValue('D2', '转入方');
|
||||
$sheet->setCellValue('E2', '商品');
|
||||
$sheet->setCellValue('F2', '数量');
|
||||
$sheet->setCellValue('G2', '备注');
|
||||
$sheet->setCellValue('H2', '创建时间');
|
||||
// 设置列宽
|
||||
$sheet->getColumnDimension('A')->setAutoSize(true);
|
||||
$sheet->getColumnDimension('B')->setAutoSize(true);
|
||||
$sheet->getColumnDimension('C')->setWidth(20);
|
||||
$sheet->getColumnDimension('D')->setWidth(20);
|
||||
$sheet->getColumnDimension('E')->setAutoSize(true);
|
||||
$sheet->getColumnDimension('F')->setAutoSize(true);
|
||||
$sheet->getColumnDimension('G')->setAutoSize(true);
|
||||
$sheet->getColumnDimension('H')->setAutoSize(true);
|
||||
// 设置默认的单元格样式
|
||||
$defaultStyle = [
|
||||
'alignment' => [
|
||||
'horizontal' => Alignment::HORIZONTAL_CENTER,
|
||||
'vertical' => Alignment::VERTICAL_CENTER,
|
||||
],
|
||||
];
|
||||
|
||||
$spreadsheet->getDefaultStyle()->applyFromArray($defaultStyle);
|
||||
|
||||
// 写入数据
|
||||
$row = 3;
|
||||
foreach ($data as $item) {
|
||||
$sheet->setCellValue('A' . $row, $order['order_id'])
|
||||
->setCellValue('B' . $row, $order['one_name'])
|
||||
->setCellValue('C' . $row, $order['type_name'])
|
||||
->setCellValue('D' . $row, $order['two_name'])
|
||||
->setCellValue('E' . $row, $item['store_name'])
|
||||
->setCellValue('F' . $row, $item['nums'])
|
||||
->setCellValue('G' . $row, $item['remark'])
|
||||
->setCellValue('H' . $row, $item['create_time']);
|
||||
$row++;
|
||||
}
|
||||
|
||||
$count = count($data);
|
||||
// 应用默认样式到整个工作表
|
||||
// 设置单元格的样式
|
||||
$styleArray = [
|
||||
'font' => [
|
||||
'bold' => true,
|
||||
'size' => 16,
|
||||
],
|
||||
];
|
||||
$sheet->getStyle('A1')->applyFromArray($styleArray);
|
||||
// 定义线框样式
|
||||
$styleArray = [
|
||||
'borders' => [
|
||||
'allBorders' => [
|
||||
'borderStyle' => Border::BORDER_THIN, // 线框样式
|
||||
'color' => ['argb' => '000000'], // 线框颜色
|
||||
],
|
||||
],
|
||||
];
|
||||
$sheet->getStyle('A1:H' . ($count + 2))->applyFromArray($styleArray);
|
||||
// 保存文件到 public 下
|
||||
$writer = new Xlsx($spreadsheet);
|
||||
$url = '/export/' . "调拨订单-" . date('YmdHi') . '.xlsx';
|
||||
$file_path = public_path() . $url;
|
||||
if (!is_dir(dirname($file_path))) {
|
||||
mkdir(dirname($file_path), 0777, true);
|
||||
}
|
||||
$writer->save($file_path);
|
||||
return getenv('APP_URL') . $url;
|
||||
}
|
||||
}
|
@ -58,7 +58,8 @@
|
||||
"picqer/php-barcode-generator": "^2.4",
|
||||
"overtrue/easy-sms": "^2.6",
|
||||
"phpoffice/phpword": "^1.3",
|
||||
"chance-fyi/operation-log": "^3.0"
|
||||
"chance-fyi/operation-log": "^3.0",
|
||||
"tencentcloud/tencentcloud-sdk-php": "^3.0"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-event": "For better performance. "
|
||||
|
56
composer.lock
generated
56
composer.lock
generated
@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "005401e7f7b2cce665fa8d6a9a1cb808",
|
||||
"content-hash": "e0a6dbafa795991cf0ffd520af434c5c",
|
||||
"packages": [
|
||||
{
|
||||
"name": "aliyuncs/oss-sdk-php",
|
||||
@ -6760,6 +6760,56 @@
|
||||
},
|
||||
"time": "2022-08-27T08:29:08+00:00"
|
||||
},
|
||||
{
|
||||
"name": "tencentcloud/tencentcloud-sdk-php",
|
||||
"version": "3.0.1356",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/TencentCloud/tencentcloud-sdk-php.git",
|
||||
"reference": "927db31908964673afd2691528dda135e29c3e9a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/TencentCloud/tencentcloud-sdk-php/zipball/927db31908964673afd2691528dda135e29c3e9a",
|
||||
"reference": "927db31908964673afd2691528dda135e29c3e9a",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"guzzlehttp/guzzle": "^6.3 || ^7.0",
|
||||
"php": ">=5.6.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^9.5"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"TencentCloud\\": "./src/TencentCloud"
|
||||
},
|
||||
"classmap": [
|
||||
"src/QcloudApi/QcloudApi.php"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "coolli",
|
||||
"email": "tencentcloudapi@tencent.com",
|
||||
"homepage": "https://cloud.tencent.com/document/sdk/PHP",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"description": "TencentCloudApi php sdk",
|
||||
"homepage": "https://github.com/TencentCloud/tencentcloud-sdk-php",
|
||||
"support": {
|
||||
"issues": "https://github.com/TencentCloud/tencentcloud-sdk-php/issues",
|
||||
"source": "https://github.com/TencentCloud/tencentcloud-sdk-php/tree/3.0.1356"
|
||||
},
|
||||
"time": "2025-04-07T20:07:18+00:00"
|
||||
},
|
||||
{
|
||||
"name": "thenorthmemory/xml",
|
||||
"version": "1.1.1",
|
||||
@ -8112,7 +8162,7 @@
|
||||
"packages-dev": [],
|
||||
"aliases": [],
|
||||
"minimum-stability": "stable",
|
||||
"stability-flags": [],
|
||||
"stability-flags": {},
|
||||
"prefer-stable": false,
|
||||
"prefer-lowest": false,
|
||||
"platform": {
|
||||
@ -8120,6 +8170,6 @@
|
||||
"ext-json": "*",
|
||||
"ext-bcmath": "*"
|
||||
},
|
||||
"platform-dev": [],
|
||||
"platform-dev": {},
|
||||
"plugin-api-version": "2.6.0"
|
||||
}
|
||||
|
1
public/output.text
Normal file
1
public/output.text
Normal file
File diff suppressed because one or more lines are too long
27
vendor/composer/InstalledVersions.php
vendored
27
vendor/composer/InstalledVersions.php
vendored
@ -32,6 +32,11 @@ class InstalledVersions
|
||||
*/
|
||||
private static $installed;
|
||||
|
||||
/**
|
||||
* @var bool
|
||||
*/
|
||||
private static $installedIsLocalDir;
|
||||
|
||||
/**
|
||||
* @var bool|null
|
||||
*/
|
||||
@ -309,6 +314,12 @@ class InstalledVersions
|
||||
{
|
||||
self::$installed = $data;
|
||||
self::$installedByVendor = array();
|
||||
|
||||
// when using reload, we disable the duplicate protection to ensure that self::$installed data is
|
||||
// always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not,
|
||||
// so we have to assume it does not, and that may result in duplicate data being returned when listing
|
||||
// all installed packages for example
|
||||
self::$installedIsLocalDir = false;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -322,19 +333,27 @@ class InstalledVersions
|
||||
}
|
||||
|
||||
$installed = array();
|
||||
$copiedLocalDir = false;
|
||||
|
||||
if (self::$canGetVendors) {
|
||||
$selfDir = strtr(__DIR__, '\\', '/');
|
||||
foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
|
||||
$vendorDir = strtr($vendorDir, '\\', '/');
|
||||
if (isset(self::$installedByVendor[$vendorDir])) {
|
||||
$installed[] = self::$installedByVendor[$vendorDir];
|
||||
} elseif (is_file($vendorDir.'/composer/installed.php')) {
|
||||
/** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
|
||||
$required = require $vendorDir.'/composer/installed.php';
|
||||
$installed[] = self::$installedByVendor[$vendorDir] = $required;
|
||||
if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
|
||||
self::$installed = $installed[count($installed) - 1];
|
||||
self::$installedByVendor[$vendorDir] = $required;
|
||||
$installed[] = $required;
|
||||
if (self::$installed === null && $vendorDir.'/composer' === $selfDir) {
|
||||
self::$installed = $required;
|
||||
self::$installedIsLocalDir = true;
|
||||
}
|
||||
}
|
||||
if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {
|
||||
$copiedLocalDir = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -350,7 +369,7 @@ class InstalledVersions
|
||||
}
|
||||
}
|
||||
|
||||
if (self::$installed !== array()) {
|
||||
if (self::$installed !== array() && !$copiedLocalDir) {
|
||||
$installed[] = self::$installed;
|
||||
}
|
||||
|
||||
|
1
vendor/composer/autoload_classmap.php
vendored
1
vendor/composer/autoload_classmap.php
vendored
@ -21,6 +21,7 @@ return array(
|
||||
'Normalizer' => $vendorDir . '/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php',
|
||||
'Override' => $vendorDir . '/symfony/polyfill-php83/Resources/stubs/Override.php',
|
||||
'PhpToken' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/PhpToken.php',
|
||||
'QcloudApi' => $vendorDir . '/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/QcloudApi.php',
|
||||
'ReturnTypeWillChange' => $vendorDir . '/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php',
|
||||
'SQLite3Exception' => $vendorDir . '/symfony/polyfill-php83/Resources/stubs/SQLite3Exception.php',
|
||||
'Stringable' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/Stringable.php',
|
||||
|
5
vendor/composer/autoload_psr4.php
vendored
5
vendor/composer/autoload_psr4.php
vendored
@ -7,7 +7,7 @@ $baseDir = dirname($vendorDir);
|
||||
|
||||
return array(
|
||||
'voku\\' => array($vendorDir . '/voku/portable-ascii/src/voku'),
|
||||
'think\\' => array($vendorDir . '/topthink/think-container/src', $vendorDir . '/topthink/think-helper/src', $vendorDir . '/topthink/think-orm/src'),
|
||||
'think\\' => array($vendorDir . '/topthink/think-orm/src', $vendorDir . '/topthink/think-container/src', $vendorDir . '/topthink/think-helper/src'),
|
||||
'taoser\\' => array($vendorDir . '/taoser/webman-validate/src'),
|
||||
'support\\' => array($vendorDir . '/workerman/webman-framework/src/support'),
|
||||
'app\\View\\Components\\' => array($baseDir . '/app/view/components'),
|
||||
@ -30,6 +30,7 @@ return array(
|
||||
'Tinywan\\Storage\\' => array($vendorDir . '/tinywan/storage/src'),
|
||||
'Tinywan\\Jwt\\' => array($vendorDir . '/tinywan/jwt/src'),
|
||||
'TheNorthMemory\\Xml\\' => array($vendorDir . '/thenorthmemory/xml/src'),
|
||||
'TencentCloud\\' => array($vendorDir . '/tencentcloud/tencentcloud-sdk-php/src/TencentCloud'),
|
||||
'Symfony\\Polyfill\\Php83\\' => array($vendorDir . '/symfony/polyfill-php83'),
|
||||
'Symfony\\Polyfill\\Php81\\' => array($vendorDir . '/symfony/polyfill-php81'),
|
||||
'Symfony\\Polyfill\\Php80\\' => array($vendorDir . '/symfony/polyfill-php80'),
|
||||
@ -86,7 +87,7 @@ return array(
|
||||
'Invoker\\' => array($vendorDir . '/php-di/invoker/src'),
|
||||
'Intervention\\Image\\' => array($vendorDir . '/intervention/image/src'),
|
||||
'Intervention\\Gif\\' => array($vendorDir . '/intervention/gif/src'),
|
||||
'Illuminate\\Support\\' => array($vendorDir . '/illuminate/collections', $vendorDir . '/illuminate/conditionable', $vendorDir . '/illuminate/macroable', $vendorDir . '/illuminate/support'),
|
||||
'Illuminate\\Support\\' => array($vendorDir . '/illuminate/support', $vendorDir . '/illuminate/collections', $vendorDir . '/illuminate/conditionable', $vendorDir . '/illuminate/macroable'),
|
||||
'Illuminate\\Redis\\' => array($vendorDir . '/illuminate/redis'),
|
||||
'Illuminate\\Contracts\\' => array($vendorDir . '/illuminate/contracts'),
|
||||
'Hyperf\\Pimple\\' => array($vendorDir . '/hyperf/pimple/src'),
|
||||
|
20
vendor/composer/autoload_static.php
vendored
20
vendor/composer/autoload_static.php
vendored
@ -91,6 +91,7 @@ class ComposerStaticInitcefecbcff919f3c1c8084830bbb72adc
|
||||
'Tinywan\\Storage\\' => 16,
|
||||
'Tinywan\\Jwt\\' => 12,
|
||||
'TheNorthMemory\\Xml\\' => 19,
|
||||
'TencentCloud\\' => 13,
|
||||
),
|
||||
'S' =>
|
||||
array (
|
||||
@ -235,9 +236,9 @@ class ComposerStaticInitcefecbcff919f3c1c8084830bbb72adc
|
||||
),
|
||||
'think\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/topthink/think-container/src',
|
||||
1 => __DIR__ . '/..' . '/topthink/think-helper/src',
|
||||
2 => __DIR__ . '/..' . '/topthink/think-orm/src',
|
||||
0 => __DIR__ . '/..' . '/topthink/think-orm/src',
|
||||
1 => __DIR__ . '/..' . '/topthink/think-container/src',
|
||||
2 => __DIR__ . '/..' . '/topthink/think-helper/src',
|
||||
),
|
||||
'taoser\\' =>
|
||||
array (
|
||||
@ -327,6 +328,10 @@ class ComposerStaticInitcefecbcff919f3c1c8084830bbb72adc
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/thenorthmemory/xml/src',
|
||||
),
|
||||
'TencentCloud\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/tencentcloud/tencentcloud-sdk-php/src/TencentCloud',
|
||||
),
|
||||
'Symfony\\Polyfill\\Php83\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/symfony/polyfill-php83',
|
||||
@ -554,10 +559,10 @@ class ComposerStaticInitcefecbcff919f3c1c8084830bbb72adc
|
||||
),
|
||||
'Illuminate\\Support\\' =>
|
||||
array (
|
||||
0 => __DIR__ . '/..' . '/illuminate/collections',
|
||||
1 => __DIR__ . '/..' . '/illuminate/conditionable',
|
||||
2 => __DIR__ . '/..' . '/illuminate/macroable',
|
||||
3 => __DIR__ . '/..' . '/illuminate/support',
|
||||
0 => __DIR__ . '/..' . '/illuminate/support',
|
||||
1 => __DIR__ . '/..' . '/illuminate/collections',
|
||||
2 => __DIR__ . '/..' . '/illuminate/conditionable',
|
||||
3 => __DIR__ . '/..' . '/illuminate/macroable',
|
||||
),
|
||||
'Illuminate\\Redis\\' =>
|
||||
array (
|
||||
@ -718,6 +723,7 @@ class ComposerStaticInitcefecbcff919f3c1c8084830bbb72adc
|
||||
'Normalizer' => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer/Resources/stubs/Normalizer.php',
|
||||
'Override' => __DIR__ . '/..' . '/symfony/polyfill-php83/Resources/stubs/Override.php',
|
||||
'PhpToken' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/PhpToken.php',
|
||||
'QcloudApi' => __DIR__ . '/..' . '/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/QcloudApi.php',
|
||||
'ReturnTypeWillChange' => __DIR__ . '/..' . '/symfony/polyfill-php81/Resources/stubs/ReturnTypeWillChange.php',
|
||||
'SQLite3Exception' => __DIR__ . '/..' . '/symfony/polyfill-php83/Resources/stubs/SQLite3Exception.php',
|
||||
'Stringable' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/Stringable.php',
|
||||
|
53
vendor/composer/installed.json
vendored
53
vendor/composer/installed.json
vendored
@ -6739,6 +6739,59 @@
|
||||
},
|
||||
"install-path": "../taoser/webman-validate"
|
||||
},
|
||||
{
|
||||
"name": "tencentcloud/tencentcloud-sdk-php",
|
||||
"version": "3.0.1356",
|
||||
"version_normalized": "3.0.1356.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/TencentCloud/tencentcloud-sdk-php.git",
|
||||
"reference": "927db31908964673afd2691528dda135e29c3e9a"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/TencentCloud/tencentcloud-sdk-php/zipball/927db31908964673afd2691528dda135e29c3e9a",
|
||||
"reference": "927db31908964673afd2691528dda135e29c3e9a",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"guzzlehttp/guzzle": "^6.3 || ^7.0",
|
||||
"php": ">=5.6.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^9.5"
|
||||
},
|
||||
"time": "2025-04-07T20:07:18+00:00",
|
||||
"type": "library",
|
||||
"installation-source": "dist",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"TencentCloud\\": "./src/TencentCloud"
|
||||
},
|
||||
"classmap": [
|
||||
"src/QcloudApi/QcloudApi.php"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"Apache-2.0"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "coolli",
|
||||
"email": "tencentcloudapi@tencent.com",
|
||||
"homepage": "https://cloud.tencent.com/document/sdk/PHP",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"description": "TencentCloudApi php sdk",
|
||||
"homepage": "https://github.com/TencentCloud/tencentcloud-sdk-php",
|
||||
"support": {
|
||||
"issues": "https://github.com/TencentCloud/tencentcloud-sdk-php/issues",
|
||||
"source": "https://github.com/TencentCloud/tencentcloud-sdk-php/tree/3.0.1356"
|
||||
},
|
||||
"install-path": "../tencentcloud/tencentcloud-sdk-php"
|
||||
},
|
||||
{
|
||||
"name": "thenorthmemory/xml",
|
||||
"version": "1.1.1",
|
||||
|
9
vendor/composer/installed.php
vendored
9
vendor/composer/installed.php
vendored
@ -902,6 +902,15 @@
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'tencentcloud/tencentcloud-sdk-php' => array(
|
||||
'pretty_version' => '3.0.1356',
|
||||
'version' => '3.0.1356.0',
|
||||
'reference' => '927db31908964673afd2691528dda135e29c3e9a',
|
||||
'type' => 'library',
|
||||
'install_path' => __DIR__ . '/../tencentcloud/tencentcloud-sdk-php',
|
||||
'aliases' => array(),
|
||||
'dev_requirement' => false,
|
||||
),
|
||||
'thenorthmemory/xml' => array(
|
||||
'pretty_version' => '1.1.1',
|
||||
'version' => '1.1.1.0',
|
||||
|
201
vendor/tencentcloud/tencentcloud-sdk-php/LICENSE
vendored
Normal file
201
vendor/tencentcloud/tencentcloud-sdk-php/LICENSE
vendored
Normal file
@ -0,0 +1,201 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
230
vendor/tencentcloud/tencentcloud-sdk-php/README.md
vendored
Normal file
230
vendor/tencentcloud/tencentcloud-sdk-php/README.md
vendored
Normal file
@ -0,0 +1,230 @@
|
||||
# 简介
|
||||
欢迎使用腾讯云开发者工具套件(SDK)3.0,SDK3.0是云 API3.0 平台的配套工具。
|
||||
为方便 PHP 开发者调试和接入腾讯云产品 API,这里向您介绍适用于 PHP 的腾讯云开发工具包,并提供首次使用开发工具包的简单示例。让您快速获取腾讯云 PHP SDK 并开始调用。
|
||||
# 依赖环境
|
||||
1. PHP 5.6.0 版本及以上
|
||||
2. 从腾讯云控制台 开通相应产品
|
||||
3. 获取 SecretID、SecretKey 以及调用地址(endpoint),endpoint 一般形式为 \*.tencentcloudapi.com,如CVM 的调用地址为 cvm.tencentcloudapi.com,具体参考各产品说明。
|
||||
|
||||
# 获取安装
|
||||
安装 PHP SDK 前,先获取安全凭证。在第一次使用云API之前,用户首先需要在腾讯云控制台上申请安全凭证,安全凭证包括 SecretID 和 SecretKey, SecretID 是用于标识 API 调用者的身份,SecretKey是用于加密签名字符串和服务器端验证签名字符串的密钥。SecretKey 必须严格保管,避免泄露。
|
||||
## 通过 Composer 安装
|
||||
通过 Composer 获取安装是使用 PHP SDK 的推荐方法,Composer 是 PHP 的依赖管理工具,支持您项目所需的依赖项,并将其安装到项目中。关于 Composer 详细可参考 Composer 官网 。
|
||||
|
||||
安装Composer:
|
||||
windows环境请访问[Composer官网](https://getcomposer.org/download/)下载安装包安装。
|
||||
|
||||
unix环境在命令行中执行以下命令安装。
|
||||
> curl -sS https://getcomposer.org/installer | php
|
||||
|
||||
> sudo mv composer.phar /usr/local/bin/composer
|
||||
|
||||
### 安装指定产品 SDK(推荐)
|
||||
例如:安装指定产品包
|
||||
```bash
|
||||
composer require tencentcloud/指定产品包名缩写 # 如 CVM 产品包:tencentcloud/cvm
|
||||
```
|
||||
具体产品的包名缩写请参考 [products.md](./products.md) 中的包名字段。
|
||||
|
||||
### 安装全产品 SDK
|
||||
```bash
|
||||
composer require tencentcloud/tencentcloud-sdk-php
|
||||
```
|
||||
全产品 SDK 包含了所有云产品的调用代码,体积偏大,对体积敏感的场景,推荐安装指定产品 SDK。
|
||||
|
||||
### 注意事项
|
||||
- 安装全产品 SDK 和安装指定产品的 SDK 两种方式只能选择其中一种。
|
||||
- 如果同时安装多个产品的包,建议多个产品的包和 common 包保持在同一个版本。
|
||||
- 无法使用官方源的的用户可以设置镜像源,例如:`composer config -g repos.packagist composer https://mirrors.tencent.com/composer/`
|
||||
- 推荐使用固定的 SDK 版本开发测试和发布应用,例如 `composer require tencentcloud/cvm=xx.yy.zz`。如果不需要 phpunit 等开发依赖,可以指定 `--update-no-dev` 选项。
|
||||
- 在代码中添加以下引用代码。注意:如下仅为示例,composer 会在项目根目录下生成 vendor 目录,`/path/to/`为项目根目录的实际绝对路径,如果是在当前目录执行,可以省略绝对路径。
|
||||
|
||||
> require '/path/to/vendor/autoload.php';
|
||||
|
||||
# 示例
|
||||
|
||||
推荐使用 [API 3.0 Explorer](https://console.cloud.tencent.com/api/explorer),提供在线调用、签名验证、SDK 代码生成和快速检索接口等能力,能显著降低使用云 API 3.0 和 SDK 的难度。
|
||||
|
||||
还可以参考 SDK 仓库中 [examples](https://github.com/TencentCloud/tencentcloud-sdk-php/tree/master/examples) 目录中的示例,展示了更多的用法。
|
||||
|
||||
下面以查询实例接口DescribeInstances为例:
|
||||
|
||||
### 简略版
|
||||
|
||||
```php
|
||||
<?php
|
||||
require_once '/path/to/vendor/autoload.php';
|
||||
|
||||
use TencentCloud\Cvm\V20170312\CvmClient;
|
||||
use TencentCloud\Cvm\V20170312\Models\DescribeInstancesRequest;
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
|
||||
try {
|
||||
// 为了保护密钥安全,建议将密钥设置在环境变量中或者配置文件中。
|
||||
// 硬编码密钥到代码中有可能随代码泄露而暴露,有安全隐患,并不推荐。
|
||||
// $cred = new Credential("SecretId", "SecretKey");
|
||||
$cred = new Credential(getenv("TENCENTCLOUD_SECRET_ID"),
|
||||
getenv("TENCENTCLOUD_SECRET_KEY"));
|
||||
$client = new CvmClient($cred, "ap-guangzhou");
|
||||
$req = new DescribeInstancesRequest();
|
||||
$resp = $client->DescribeInstances($req);
|
||||
print_r($resp->toJsonString());
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
```
|
||||
|
||||
### 详细版
|
||||
|
||||
```php
|
||||
<?php
|
||||
require_once '/path/to/vendor/autoload.php';
|
||||
// 导入对应产品模块的client
|
||||
use TencentCloud\Cvm\V20170312\CvmClient;
|
||||
// 导入要请求接口对应的Request类
|
||||
use TencentCloud\Cvm\V20170312\Models\DescribeInstancesRequest;
|
||||
use TencentCloud\Cvm\V20170312\Models\Filter;
|
||||
use TencentCloud\Common\Exception\TencentCloudSDKException;
|
||||
use TencentCloud\Common\Credential;
|
||||
// 导入可选配置类
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Profile\HttpProfile;
|
||||
|
||||
try {
|
||||
// 实例化一个证书对象,入参需要传入腾讯云账户 SecretId,SecretKey
|
||||
// 为了保护密钥安全,建议将密钥设置在环境变量中或者配置文件中。
|
||||
// 硬编码密钥到代码中有可能随代码泄露而暴露,有安全隐患,并不推荐。
|
||||
// $cred = new Credential("SecretId", "SecretKey");
|
||||
$cred = new Credential(getenv("TENCENTCLOUD_SECRET_ID"),
|
||||
getenv("TENCENTCLOUD_SECRET_KEY"));
|
||||
|
||||
// 实例化一个http选项,可选的,没有特殊需求可以跳过
|
||||
$httpProfile = new HttpProfile();
|
||||
// 配置代理
|
||||
// $httpProfile->setProxy("https://ip:port");
|
||||
$httpProfile->setReqMethod("GET"); // post请求(默认为post请求)
|
||||
$httpProfile->setReqTimeout(30); // 请求超时时间,单位为秒(默认60秒)
|
||||
$httpProfile->setEndpoint("cvm.ap-shanghai.tencentcloudapi.com"); // 指定接入地域域名(默认就近接入)
|
||||
|
||||
// 实例化一个client选项,可选的,没有特殊需求可以跳过
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setSignMethod("TC3-HMAC-SHA256"); // 指定签名算法(默认为HmacSHA256)
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
|
||||
// 实例化要请求产品(以cvm为例)的client对象,clientProfile是可选的
|
||||
$client = new CvmClient($cred, "ap-shanghai", $clientProfile);
|
||||
|
||||
// 实例化一个cvm实例信息查询请求对象,每个接口都会对应一个request对象。
|
||||
$req = new DescribeInstancesRequest();
|
||||
|
||||
// 填充请求参数,这里request对象的成员变量即对应接口的入参
|
||||
// 您可以通过官网接口文档或跳转到request对象的定义处查看请求参数的定义
|
||||
$respFilter = new Filter(); // 创建Filter对象, 以zone的维度来查询cvm实例
|
||||
$respFilter->Name = "zone";
|
||||
$respFilter->Values = ["ap-shanghai-1", "ap-shanghai-2"];
|
||||
$req->Filters = [$respFilter]; // Filters 是成员为Filter对象的列表
|
||||
|
||||
// 通过client对象调用DescribeInstances方法发起请求。注意请求方法名与请求对象是对应的
|
||||
// 返回的resp是一个DescribeInstancesResponse类的实例,与请求对象对应
|
||||
$resp = $client->DescribeInstances($req);
|
||||
|
||||
// 输出json格式的字符串回包
|
||||
print_r($resp->toJsonString());
|
||||
|
||||
// 也可以取出单个值。
|
||||
// 您可以通过官网接口文档或跳转到response对象的定义处查看返回字段的定义
|
||||
print_r($resp->TotalCount);
|
||||
}
|
||||
catch(TencentCloudSDKException $e) {
|
||||
echo $e;
|
||||
}
|
||||
```
|
||||
|
||||
## Common Client
|
||||
|
||||
从 3.0.839 版本起,支持通用请求方式 Common Client,可以发起 SDK 中未定义的接口请求。
|
||||
|
||||
注意:目前仅支持 POST 方法,签名方法仅支持签名方法 v3。
|
||||
|
||||
请参考 [调用示例](https://github.com/TencentCloud/tencentcloud-sdk-php/tree/master/examples/common/CommonClient.php)
|
||||
|
||||
|
||||
# 常见问题
|
||||
|
||||
## 代理
|
||||
|
||||
如果是有代理的环境下,需要设置系统环境变量 `https_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
|
||||
|
||||
或者使用 GuzzleHttp 代理配置:
|
||||
```php
|
||||
$httpProfile = new HttpProfile();
|
||||
$httpProfile->setProxy('https://ip:port');
|
||||
|
||||
$clientProfile = new ClientProfile();
|
||||
$clientProfile->setHttpProfile($httpProfile);
|
||||
|
||||
$client = new OcrClient($cred, 'ap-beijing', $this->clientProfile);
|
||||
```
|
||||
|
||||
## 地域容灾
|
||||
|
||||
从`3.0.933`起 腾讯云 Php SDK 支持地域容灾,当某个域名请求失败时,会自动切换到容灾域名。使用方式如下:
|
||||
使用地域时有三种状态相互转换:关闭、全开和半开状态
|
||||
关闭:使用主要域名请求,如果出现错误时,会切换到全开状态
|
||||
全开:使用容灾域名请求,当达到一定时间时,会切换到半开状态
|
||||
半开:此时会放少量的请求到主要域名,如果请求失败,则切换到全开状态,当请求成功数达到一定的数量时,会切换到关闭状态
|
||||
|
||||
相关设置如下
|
||||
```php
|
||||
use TencentCloud\Common\Profile\RegionBreakerProfile;
|
||||
// 开启地域容灾
|
||||
$clientProfile->enableRegionBreaker=true;
|
||||
// 设置主备节点,以cvm产品为例,假设主节点在上海,备节点在北京,则配置如下
|
||||
$regionBreakerProfile = new RegionBreakerProfile(
|
||||
"cvm.ap-shanghai.tencentcloudapi.com", // 主节点
|
||||
"cvm.ap-beijing.tencentcloudapi.com" // 备节点
|
||||
);
|
||||
$clientProfile->setRegionBreakerProfile($regionBreakerProfile);
|
||||
```
|
||||
|
||||
## 证书问题
|
||||
|
||||
如果您的 PHP 环境证书有问题,可能会遇到报错,类似于 `cURL error 60: See http://curl.haxx.se/libcurl/c/libcurl-errors.html`,请尝试按如下步骤解决:
|
||||
|
||||
1. 到 [https://curl.haxx.se/ca/cacert.pem](https://curl.haxx.se/ca/cacert.pem) 下载证书文件 `cacert.pem`,将其保存到 PHP 安装路径下。
|
||||
2. 编辑 `php.ini` 文件,删除 `curl.cainfo` 配置项前的分号注释符(;),值设置为保存的证书文件 `cacert.pem` 的绝对路径。
|
||||
3. 重启依赖 PHP 的服务。
|
||||
|
||||
## php_curl 扩展
|
||||
|
||||
此 SDK 依赖的 GuzzleHttp 需要开启 php_curl 扩展,查看环境上的 php.ini 环境确认是否已启用,例如在 Linux 环境下,PHP 7.1 版本,托管在 apache 下的服务,可以打开 /etc/php/7.1/apache2/php.ini 中查看 extension=php_curl.dll 配置项是否已被注释,请删除此项配置前的注释符并重启 apache。
|
||||
|
||||
## Web 访问异常
|
||||
|
||||
命令行下执行正常,但是放在 Web 服务器执行则报错:
|
||||
|
||||
cURL error 0: The cURL request was retried 3 times and did not succeed. The most likely reason for the failure is that cURL was unable to rewind the body of the request and subsequent retries resulted in the same error. Turn on the debug option to see what went wrong. See https://bugs.php.net/bug.php?id=47204 for more information. (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
|
||||
|
||||
此问题出现情况不一。可以运行 `php -r "echo sys_get_temp_dir();"` 打印系统默认临时目录绝对路径,然后在 `php.ini` 配置 `sys_temp_dir` 为这个值尝试是否能解决。
|
||||
|
||||
## 源码安装问题
|
||||
|
||||
为了支持部分源码安装的需要,我们将依赖的包文件放在 vendor 目录中,又考虑到不能造成对 composer 的不兼容,github 不得不设置禁止导出 vendor 目录,造成必须使用 `git clone` 命令才能拿到 vendor 目录的情况,对一些不熟悉 github 的用户造成了困扰。从 3.0.188 版本开始,我们暂时移除了源码安装,必须使用 composer 安装 SDK 和依赖的包。
|
||||
|
||||
## 关键字冲突问题
|
||||
|
||||
目前已知在 PHP 7.x 版本中,由于关键字冲突,弹性伸缩产品对应的 As 模块可能无法使用。可以考虑升级到 SDK 3.0.362 版本,使用 Autoscaling 模块。或者升级到 PHP 8 版本。
|
||||
|
||||
## 内存泄漏问题
|
||||
如果使用 SDK 对接口进行循环调用,如:
|
||||
```
|
||||
while (true) {
|
||||
$resp = $client->DescribeInstances($req);
|
||||
}
|
||||
```
|
||||
可以看到进程占用的内存持续少量上涨,这是 SDK 依赖的 GuzzleHttp 存在[内存泄漏的问题](https://github.com/guzzle/guzzle/issues/2830),目前官方还未修复。
|
||||
|
||||
# 旧版SDK
|
||||
新版 SDK 兼容旧版 SDK。旧版本的SDK存放于QcloudApi目录,但不再维护更新,推荐使用新版SDK。
|
30
vendor/tencentcloud/tencentcloud-sdk-php/composer.json
vendored
Normal file
30
vendor/tencentcloud/tencentcloud-sdk-php/composer.json
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "tencentcloud/tencentcloud-sdk-php",
|
||||
"description": "TencentCloudApi php sdk",
|
||||
"type": "library",
|
||||
"homepage": "https://github.com/TencentCloud/tencentcloud-sdk-php",
|
||||
"license": "Apache-2.0",
|
||||
"authors": [
|
||||
{
|
||||
"name": "coolli",
|
||||
"email": "tencentcloudapi@tencent.com",
|
||||
"homepage": "https://cloud.tencent.com/document/sdk/PHP",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.6.0",
|
||||
"guzzlehttp/guzzle": "^6.3 || ^7.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^9.5"
|
||||
},
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"src/QcloudApi/QcloudApi.php"
|
||||
],
|
||||
"psr-4": {
|
||||
"TencentCloud\\": "./src/TencentCloud"
|
||||
}
|
||||
}
|
||||
}
|
262
vendor/tencentcloud/tencentcloud-sdk-php/products.md
vendored
Normal file
262
vendor/tencentcloud/tencentcloud-sdk-php/products.md
vendored
Normal file
@ -0,0 +1,262 @@
|
||||
| 包名 | 产品中文名 | 更新时间 |
|
||||
|-|-|-|
|
||||
| aai | [](https://cloud.tencent.com/document/product) | 2019-08-08 23:15:13 |
|
||||
| aca | [AI 临床助手](https://cloud.tencent.com/document/product/1388) | 2025-01-09 01:08:36 |
|
||||
| acp | [应用合规平台](https://cloud.tencent.com/document/product/1553) | 2025-03-14 01:07:24 |
|
||||
| advisor | [云顾问](https://cloud.tencent.com/document/product/1264) | 2025-03-25 01:07:48 |
|
||||
| af | [借贷反欺诈](https://cloud.tencent.com/document/product/668) | 2024-11-22 11:20:38 |
|
||||
| afc | [定制建模](https://cloud.tencent.com/document/product/1029) | 2024-05-31 01:07:25 |
|
||||
| aiart | [大模型图像创作引擎](https://cloud.tencent.com/document/product/1668) | 2025-03-10 17:35:02 |
|
||||
| ame | [正版曲库直通车](https://cloud.tencent.com/document/product/1155) | 2023-08-17 01:06:14 |
|
||||
| ams | [音频内容安全](https://cloud.tencent.com/document/product/1219) | 2025-03-04 01:07:37 |
|
||||
| anicloud | [动效素材服务](https://cloud.tencent.com/document/product/1641) | 2023-05-18 01:01:53 |
|
||||
| antiddos | [T-Sec-DDoS防护(Anti-DDoS)](https://cloud.tencent.com/document/product/297) | 2025-03-31 01:07:28 |
|
||||
| apcas | [汽车精准获客服务](https://cloud.tencent.com/document/product/1244) | 2022-04-04 06:05:36 |
|
||||
| ape | [正版图库直通车](https://cloud.tencent.com/document/product/1181) | 2022-04-04 06:05:40 |
|
||||
| api | [云 API](https://cloud.tencent.com/document/product/1278) | 2023-01-05 01:02:52 |
|
||||
| apigateway | [API 网关](https://cloud.tencent.com/document/product/628) | 2025-03-28 01:08:35 |
|
||||
| apm | [应用性能监控](https://cloud.tencent.com/document/product/1463) | 2025-03-24 01:09:19 |
|
||||
| as | [弹性伸缩](https://cloud.tencent.com/document/product/377) | 2025-03-28 01:09:24 |
|
||||
| asr | [语音识别](https://cloud.tencent.com/document/product/1093) | 2025-03-19 01:10:31 |
|
||||
| asw | [应用与服务编排工作流](https://cloud.tencent.com/document/product/1272) | 2023-05-18 01:04:02 |
|
||||
| ba | [ICP备案](https://cloud.tencent.com/document/product/243) | 2024-12-19 01:10:53 |
|
||||
| batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2025-04-02 01:08:33 |
|
||||
| bda | [人体分析](https://cloud.tencent.com/document/product/1208) | 2024-11-14 01:10:31 |
|
||||
| bh | [运维安全中心(堡垒机)](https://cloud.tencent.com/document/product/1025) | 2025-04-03 01:08:29 |
|
||||
| bi | [商业智能分析 BI](https://cloud.tencent.com/document/product/590) | 2025-04-02 01:08:56 |
|
||||
| billing | [费用中心](https://cloud.tencent.com/document/product/555) | 2025-03-20 01:11:13 |
|
||||
| bizlive | [商业直播](https://cloud.tencent.com/document/product) | 2020-03-10 01:08:07 |
|
||||
| bm | [黑石物理服务器CPM](https://cloud.tencent.com/document/product/386) | 2024-03-20 01:08:40 |
|
||||
| bma | [品牌经营管家](https://cloud.tencent.com/document/product/1296) | 2024-10-18 01:04:14 |
|
||||
| bmeip | [黑石弹性公网IP](https://cloud.tencent.com/document/product/1028) | 2024-03-20 01:08:53 |
|
||||
| bmlb | [黑石负载均衡](https://cloud.tencent.com/document/product/1027) | 2024-03-20 01:08:56 |
|
||||
| bmvpc | [黑石私有网络](https://cloud.tencent.com/document/product/1024) | 2024-03-20 01:09:02 |
|
||||
| bpaas | [商业流程服务](https://cloud.tencent.com/document/product/1083) | 2024-11-29 01:10:03 |
|
||||
| bri | [业务风险情报](https://cloud.tencent.com/document/product/1064) | 2024-06-19 01:13:52 |
|
||||
| bsca | [软件成分分析](https://cloud.tencent.com/document/product/1483) | 2024-11-27 01:09:19 |
|
||||
| btoe | [区块链可信取证](https://cloud.tencent.com/document/product/1259) | 2024-11-06 15:27:32 |
|
||||
| ca | [腾讯云CA](https://cloud.tencent.com/document/product/1691) | 2025-01-16 01:08:56 |
|
||||
| cam | [访问管理](https://cloud.tencent.com/document/product/598) | 2025-04-02 01:09:26 |
|
||||
| captcha | [验证码](https://cloud.tencent.com/document/product/1110) | 2025-03-27 01:08:19 |
|
||||
| car | [应用云渲染](https://cloud.tencent.com/document/product/1547) | 2024-12-27 10:53:11 |
|
||||
| cat | [云拨测](https://cloud.tencent.com/document/product/280) | 2025-03-07 01:09:25 |
|
||||
| cbs | [云硬盘](https://cloud.tencent.com/document/product/362) | 2025-04-02 01:09:47 |
|
||||
| ccc | [云联络中心](https://cloud.tencent.com/document/product/679) | 2025-03-31 01:09:33 |
|
||||
| cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2025-03-28 01:13:58 |
|
||||
| cdc | [本地专用集群](https://cloud.tencent.com/document/product/1346) | 2025-03-28 01:15:04 |
|
||||
| cdn | [内容分发网络 CDN](https://cloud.tencent.com/document/product/228) | 2025-04-02 01:10:33 |
|
||||
| cds | [T-Sec-数据安全审计(DSA)](https://cloud.tencent.com/document/product/856) | 2024-11-08 01:17:02 |
|
||||
| cdwch | [腾讯云数据仓库TCHouse-C](https://cloud.tencent.com/document/product/1299) | 2025-03-24 01:16:39 |
|
||||
| cdwdoris | [腾讯云数据仓库 TCHouse-D](https://cloud.tencent.com/document/product/1387) | 2025-03-28 01:16:20 |
|
||||
| cdwpg | [云数据仓库 PostgreSQL](https://cloud.tencent.com/document/product/878) | 2025-03-27 01:12:24 |
|
||||
| cdz | [专属可用区](https://cloud.tencent.com/document/product/1629) | 2025-03-28 01:16:55 |
|
||||
| cfg | [混沌演练平台](https://cloud.tencent.com/document/product/1500) | 2025-04-02 01:11:14 |
|
||||
| cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2025-03-28 01:17:07 |
|
||||
| cfw | [云防火墙](https://cloud.tencent.com/document/product/1132) | 2025-04-04 01:11:14 |
|
||||
| chc | [云托付物理服务器](https://cloud.tencent.com/document/product/1448) | 2025-03-28 01:18:07 |
|
||||
| chdfs | [云 HDFS](https://cloud.tencent.com/document/product/1105) | 2025-04-02 01:11:44 |
|
||||
| ciam | [账号风控平台](https://cloud.tencent.com/document/product/1441) | 2025-03-07 01:11:06 |
|
||||
| cii | [智能保险助手](https://cloud.tencent.com/document/product/1368) | 2023-05-18 01:12:07 |
|
||||
| cim | [](https://cloud.tencent.com/document/product) | 2019-05-16 17:21:18 |
|
||||
| cis | [](https://cloud.tencent.com/document/product) | 2018-06-07 15:01:42 |
|
||||
| ckafka | [消息队列 CKafka 版](https://cloud.tencent.com/document/product/597) | 2025-04-03 01:11:25 |
|
||||
| clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2025-04-03 01:11:40 |
|
||||
| cloudapp | [云应用](https://cloud.tencent.com/document/product/1689) | 2025-01-09 01:12:37 |
|
||||
| cloudaudit | [操作审计](https://cloud.tencent.com/document/product/629) | 2025-03-26 01:21:06 |
|
||||
| cloudhsm | [云加密机](https://cloud.tencent.com/document/product/639) | 2024-11-28 10:52:49 |
|
||||
| cloudstudio | [Cloud Studio(云端 IDE)](https://cloud.tencent.com/document/product/1039) | 2025-02-28 01:15:03 |
|
||||
| cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2025-04-08 01:11:58 |
|
||||
| cme | [多媒体创作引擎](https://cloud.tencent.com/document/product/1156) | 2025-03-27 20:17:54 |
|
||||
| cmq | [消息队列 CMQ](https://cloud.tencent.com/document/product/406) | 2025-03-14 01:12:04 |
|
||||
| cms | [内容安全](https://cloud.tencent.com/document/product/669) | 2024-06-20 01:24:47 |
|
||||
| config | [配置审计](https://cloud.tencent.com/document/product/1579) | 2025-01-15 01:11:56 |
|
||||
| controlcenter | [控制中心](https://cloud.tencent.com/document/product/1708) | 2025-04-02 01:12:54 |
|
||||
| cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2023-09-21 02:09:54 |
|
||||
| csip | [云安全一体化平台](https://cloud.tencent.com/document/product/664) | 2025-03-07 01:12:16 |
|
||||
| csxg | [5G入云服务](https://cloud.tencent.com/document/product/1687) | 2024-03-20 01:12:25 |
|
||||
| cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2025-04-01 01:13:17 |
|
||||
| cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2025-04-03 18:32:35 |
|
||||
| cws | [漏洞扫描服务](https://cloud.tencent.com/document/product) | 2019-11-22 12:16:15 |
|
||||
| cynosdb | [TDSQL-C MySQL 版](https://cloud.tencent.com/document/product/1003) | 2025-03-31 01:14:08 |
|
||||
| dasb | [运维安全中心(堡垒机)](https://cloud.tencent.com/document/product/1025) | 2024-11-19 01:26:13 |
|
||||
| dataintegration | [数据接入平台](https://cloud.tencent.com/document/product/1591) | 2022-07-26 15:32:15 |
|
||||
| dayu | [DDoS 高防包](https://cloud.tencent.com/document/product/1021) | 2023-05-18 01:20:11 |
|
||||
| dbbrain | [数据库智能管家 DBbrain](https://cloud.tencent.com/document/product/1130) | 2025-04-02 01:15:06 |
|
||||
| dbdc | [云数据库独享集群](https://cloud.tencent.com/document/product/1322) | 2025-03-27 01:23:17 |
|
||||
| dc | [专线接入](https://cloud.tencent.com/document/product/216) | 2025-02-24 01:26:07 |
|
||||
| dcdb | [TDSQL MySQL 版](https://cloud.tencent.com/document/product/557) | 2025-04-02 01:15:36 |
|
||||
| dlc | [数据湖计算 DLC](https://cloud.tencent.com/document/product/1342) | 2025-04-01 01:15:35 |
|
||||
| dnspod | [DNSPod](https://cloud.tencent.com/document/product/1427) | 2025-04-02 01:16:18 |
|
||||
| domain | [域名注册](https://cloud.tencent.com/document/product/242) | 2025-03-28 01:29:59 |
|
||||
| drm | [数字版权管理](https://cloud.tencent.com/document/product/1000) | 2025-01-09 01:16:10 |
|
||||
| ds | [文档服务](https://cloud.tencent.com/document/product/869) | 2024-03-20 01:15:13 |
|
||||
| dsgc | [数据安全治理中心](https://cloud.tencent.com/document/product/1087) | 2025-03-20 20:20:10 |
|
||||
| dtf | [分布式事务](https://cloud.tencent.com/document/product/1224) | 2022-04-04 06:38:57 |
|
||||
| dts | [数据传输服务](https://cloud.tencent.com/document/product/571) | 2025-04-02 16:33:03 |
|
||||
| eb | [事件总线](https://cloud.tencent.com/document/product/1359) | 2025-03-25 15:22:50 |
|
||||
| ecc | [英文作文批改](https://cloud.tencent.com/document/product/1076) | 2024-09-05 01:32:54 |
|
||||
| ecdn | [全站加速网络](https://cloud.tencent.com/document/product/570) | 2025-03-28 01:32:15 |
|
||||
| ecm | [边缘计算机器](https://cloud.tencent.com/document/product/1108) | 2025-01-10 01:15:40 |
|
||||
| eiam | [数字身份管控平台(员工版)](https://cloud.tencent.com/document/product/1442) | 2024-06-25 01:14:34 |
|
||||
| eis | [数据连接器](https://cloud.tencent.com/document/product/1270) | 2023-08-10 01:17:44 |
|
||||
| emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2025-03-28 01:33:26 |
|
||||
| es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2025-03-18 01:35:57 |
|
||||
| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2025-04-01 01:17:53 |
|
||||
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2025-04-01 01:18:12 |
|
||||
| facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2025-04-02 01:18:44 |
|
||||
| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2025-02-28 01:30:36 |
|
||||
| fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2025-03-20 01:38:20 |
|
||||
| ft | [人像变换](https://cloud.tencent.com/document/product/1202) | 2024-11-21 01:34:23 |
|
||||
| gaap | [全球应用加速](https://cloud.tencent.com/document/product/608) | 2025-01-09 01:18:35 |
|
||||
| gme | [游戏多媒体引擎](https://cloud.tencent.com/document/product/607) | 2025-02-21 01:35:33 |
|
||||
| goosefs | [数据加速器 GooseFS](https://cloud.tencent.com/document/product/1424) | 2025-03-20 01:39:23 |
|
||||
| gpm | [游戏玩家匹配](https://cloud.tencent.com/document/product/1294) | 2022-07-11 06:12:36 |
|
||||
| gs | [云游戏](https://cloud.tencent.com/document/product/1162) | 2025-04-08 01:17:33 |
|
||||
| gse | [游戏服务器伸缩](https://cloud.tencent.com/document/product/1165) | 2022-07-11 06:12:44 |
|
||||
| gwlb | [网关负载均衡](https://cloud.tencent.com/document/product/1782) | 2025-03-28 01:37:42 |
|
||||
| habo | [](https://cloud.tencent.com/document/product) | 2019-05-09 19:37:22 |
|
||||
| hai | [高性能应用服务](https://cloud.tencent.com/document/product/1721) | 2025-04-01 01:19:03 |
|
||||
| hasim | [高可用物联网卡](https://cloud.tencent.com/document/product/1482) | 2023-05-18 01:29:47 |
|
||||
| hcm | [数学作业批改](https://cloud.tencent.com/document/product/1004) | 2024-05-09 01:16:27 |
|
||||
| hunyuan | [腾讯混元大模型](https://cloud.tencent.com/document/product/1729) | 2025-03-27 01:34:12 |
|
||||
| iai | [人脸识别](https://cloud.tencent.com/document/product/867) | 2024-12-27 11:13:24 |
|
||||
| iap | [身份识别平台](https://cloud.tencent.com/document/product/1787) | 2025-03-26 01:41:04 |
|
||||
| ic | [图片瘦身](https://cloud.tencent.com/document/product/636) | 2023-03-02 01:23:21 |
|
||||
| icr | [对话机器人](https://cloud.tencent.com/document/product/1268) | 2024-04-22 01:17:48 |
|
||||
| ie | [智能编辑](https://cloud.tencent.com/document/product/1186) | 2023-08-17 03:20:18 |
|
||||
| iecp | [物联网边缘计算平台](https://cloud.tencent.com/document/product/1118) | 2024-09-25 01:22:07 |
|
||||
| ig | [智能导诊](https://cloud.tencent.com/document/product/1273) | 2024-11-21 01:36:39 |
|
||||
| iir | [智能识图](https://cloud.tencent.com/document/product/1217) | 2022-04-04 06:48:05 |
|
||||
| ims | [图片内容安全](https://cloud.tencent.com/document/product/1125) | 2025-03-28 01:38:47 |
|
||||
| ioa | [iOA 零信任安全管理系统](https://cloud.tencent.com/document/product/1092) | 2025-02-21 01:37:05 |
|
||||
| iot | [加速物联网套件](https://cloud.tencent.com/document/product/568) | 2023-07-17 01:22:28 |
|
||||
| iotcloud | [物联网通信](https://cloud.tencent.com/document/product/634) | 2025-04-01 01:19:27 |
|
||||
| iotexplorer | [物联网开发平台](https://cloud.tencent.com/document/product/1081) | 2025-04-08 01:18:12 |
|
||||
| iottid | [物联网设备身份认证](https://cloud.tencent.com/document/product/1086) | 2023-05-18 01:33:02 |
|
||||
| iotvideo | [物联网智能视频服务](https://cloud.tencent.com/document/product/1131) | 2025-03-28 01:41:10 |
|
||||
| iotvideoindustry | [物联网智能视频服务(行业版)](https://cloud.tencent.com/document/product/1361) | 2025-04-07 01:39:24 |
|
||||
| irp | [智能推荐平台](https://cloud.tencent.com/document/product/1541) | 2024-10-17 01:22:29 |
|
||||
| iss | [智能视图计算平台](https://cloud.tencent.com/document/product/1344) | 2025-04-02 01:21:10 |
|
||||
| ivld | [媒体智能标签](https://cloud.tencent.com/document/product/1509) | 2024-12-16 01:41:44 |
|
||||
| keewidb | [云数据库 KeeWiDB](https://cloud.tencent.com/document/product/1520) | 2025-03-10 01:41:29 |
|
||||
| kms | [密钥管理系统](https://cloud.tencent.com/document/product/573) | 2025-03-14 01:19:50 |
|
||||
| lcic | [实时互动-教育版](https://cloud.tencent.com/document/product/1639) | 2025-03-26 01:46:29 |
|
||||
| lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2025-03-31 01:21:08 |
|
||||
| live | [云直播CSS](https://cloud.tencent.com/document/product/267) | 2025-04-01 01:21:49 |
|
||||
| lke | [大模型知识引擎](https://cloud.tencent.com/document/product/1759) | 2025-03-31 01:21:48 |
|
||||
| lkeap | [知识引擎原子能力](https://cloud.tencent.com/document/product/1772) | 2025-04-08 01:20:34 |
|
||||
| lowcode | [云开发低码](https://cloud.tencent.com/document/product/1301) | 2025-03-20 01:49:29 |
|
||||
| mall | [商场客留大数据](https://cloud.tencent.com/document/product/1707) | 2024-03-20 01:20:11 |
|
||||
| mariadb | [云数据库 MariaDB](https://cloud.tencent.com/document/product/237) | 2025-04-02 01:23:06 |
|
||||
| market | [云市场](https://cloud.tencent.com/document/product/306) | 2024-11-25 01:21:47 |
|
||||
| memcached | [云数据库Memcached](https://cloud.tencent.com/document/product/241) | 2025-03-24 01:49:27 |
|
||||
| mgobe | [游戏联机对战引擎](https://cloud.tencent.com/document/product/1038) | 2022-07-08 06:11:32 |
|
||||
| mmps | [小程序安全](https://cloud.tencent.com/document/product/1223) | 2025-03-28 01:47:29 |
|
||||
| mna | [多网聚合加速](https://cloud.tencent.com/document/product/1385) | 2025-04-08 01:20:55 |
|
||||
| mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2025-03-28 01:48:00 |
|
||||
| monitor | [腾讯云可观测平台](https://cloud.tencent.com/document/product/248) | 2025-02-18 23:57:24 |
|
||||
| mps | [媒体处理](https://cloud.tencent.com/document/product/862) | 2025-04-02 01:24:01 |
|
||||
| mqtt | [消息队列 MQTT 版](https://cloud.tencent.com/document/product/1778) | 2025-04-02 01:24:29 |
|
||||
| mrs | [医疗报告结构化](https://cloud.tencent.com/document/product/1314) | 2024-12-12 01:48:36 |
|
||||
| ms | [移动应用安全](https://cloud.tencent.com/document/product/283) | 2024-11-14 01:54:52 |
|
||||
| msp | [迁移服务平台](https://cloud.tencent.com/document/product/659) | 2024-12-25 01:51:10 |
|
||||
| mvj | [营销价值判断](https://cloud.tencent.com/document/product) | 2020-03-19 08:11:44 |
|
||||
| nlp | [NLP 技术](https://cloud.tencent.com/document/product/271) | 2025-01-14 01:21:36 |
|
||||
| npp | [号码保护](https://cloud.tencent.com/document/product) | 2020-04-22 08:00:22 |
|
||||
| oceanus | [流计算 Oceanus](https://cloud.tencent.com/document/product/849) | 2025-03-12 01:22:00 |
|
||||
| ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2025-04-04 01:23:59 |
|
||||
| omics | [腾讯健康组学平台](https://cloud.tencent.com/document/product/1643) | 2024-12-25 01:52:29 |
|
||||
| organization | [集团账号管理](https://cloud.tencent.com/document/product/850) | 2025-04-02 01:25:20 |
|
||||
| partners | [渠道合作伙伴](https://cloud.tencent.com/document/product/563) | 2025-04-01 10:32:48 |
|
||||
| pds | [私域安全](https://cloud.tencent.com/document/product/1473) | 2023-05-18 01:44:14 |
|
||||
| postgres | [云数据库 PostgreSQL](https://cloud.tencent.com/document/product/409) | 2025-03-28 01:53:55 |
|
||||
| privatedns | [私有域解析 Private DNS](https://cloud.tencent.com/document/product/1338) | 2025-03-27 01:51:08 |
|
||||
| pts | [云压测](https://cloud.tencent.com/document/product/1484) | 2025-03-07 01:23:46 |
|
||||
| rce | [全栈式风控引擎](https://cloud.tencent.com/document/product/1343) | 2025-03-28 14:27:40 |
|
||||
| redis | [云数据库Redis](https://cloud.tencent.com/document/product/239) | 2025-03-28 01:55:05 |
|
||||
| region | [地域管理系统](https://cloud.tencent.com/document/product/1596) | 2025-03-28 01:55:44 |
|
||||
| rum | [前端性能监控](https://cloud.tencent.com/document/product/1464) | 2025-03-14 01:24:07 |
|
||||
| scf | [云函数](https://cloud.tencent.com/document/product/583) | 2025-03-28 01:56:14 |
|
||||
| ses | [邮件推送](https://cloud.tencent.com/document/product/1288) | 2025-03-18 02:00:38 |
|
||||
| smh | [智能媒资托管](https://cloud.tencent.com/document/product/1339) | 2025-03-13 01:55:19 |
|
||||
| smop | [腾讯安心用户运营平台](https://cloud.tencent.com/document/product/1310) | 2025-02-13 01:55:34 |
|
||||
| smpn | [营销号码安全](https://cloud.tencent.com/document/product/1127) | 2024-07-09 01:21:06 |
|
||||
| sms | [短信](https://cloud.tencent.com/document/product/382) | 2025-03-07 01:24:40 |
|
||||
| soe | [智聆口语评测](https://cloud.tencent.com/document/product/884) | 2024-11-13 02:01:41 |
|
||||
| solar | [智汇零售](https://cloud.tencent.com/document/product) | 2020-03-19 08:01:59 |
|
||||
| sqlserver | [云数据库 SQL Server](https://cloud.tencent.com/document/product/238) | 2025-04-02 01:27:02 |
|
||||
| ssa | [安全运营中心](https://cloud.tencent.com/document/product/664) | 2023-11-15 02:18:28 |
|
||||
| ssl | [SSL 证书](https://cloud.tencent.com/document/product/400) | 2025-03-28 01:58:23 |
|
||||
| sslpod | [证书监控 SSLPod](https://cloud.tencent.com/document/product/1084) | 2024-03-20 01:24:03 |
|
||||
| ssm | [凭据管理系统](https://cloud.tencent.com/document/product/1140) | 2024-11-08 02:01:05 |
|
||||
| sts | [安全凭证服务](https://cloud.tencent.com/document/product/1312) | 2025-03-28 01:59:08 |
|
||||
| svp | [节省计划](https://cloud.tencent.com/document/product/1761) | 2025-03-24 02:01:25 |
|
||||
| taf | [流量反欺诈](https://cloud.tencent.com/document/product/1031) | 2025-03-27 01:55:50 |
|
||||
| tag | [标签](https://cloud.tencent.com/document/product/651) | 2025-03-28 01:59:18 |
|
||||
| tan | [碳引擎](https://cloud.tencent.com/document/product/1498) | 2024-03-20 01:24:15 |
|
||||
| tat | [自动化助手](https://cloud.tencent.com/document/product/1340) | 2025-03-26 02:03:49 |
|
||||
| tav | [文件检测](https://cloud.tencent.com/document/product) | 2019-11-28 22:10:04 |
|
||||
| tbaas | [腾讯云区块链服务平台 TBaaS](https://cloud.tencent.com/document/product/663) | 2025-03-27 01:56:21 |
|
||||
| tbm | [](https://cloud.tencent.com/document/product) | 2019-03-29 14:49:11 |
|
||||
| tbp | [腾讯智能对话平台](https://cloud.tencent.com/document/product/1060) | 2024-03-20 01:24:24 |
|
||||
| tcaplusdb | [游戏数据库 TcaplusDB](https://cloud.tencent.com/document/product/596) | 2024-08-05 02:05:20 |
|
||||
| tcb | [云开发 CloudBase](https://cloud.tencent.com/document/product/876) | 2025-04-02 01:28:03 |
|
||||
| tcbr | [云托管 CloudBase Run](https://cloud.tencent.com/document/product/1243) | 2025-02-28 01:54:37 |
|
||||
| tccatalog | [统一Catalog服务](https://cloud.tencent.com/document/product/1784) | 2025-02-10 01:57:53 |
|
||||
| tcex | [腾讯云释义](https://cloud.tencent.com/document/product/1266) | 2022-07-21 06:17:29 |
|
||||
| tchd | [腾讯云健康看板](https://cloud.tencent.com/document/product/1688) | 2025-03-25 02:03:27 |
|
||||
| tci | [腾讯智学课堂分析](https://cloud.tencent.com/document/product) | 2020-08-24 08:06:03 |
|
||||
| tcm | [服务网格](https://cloud.tencent.com/document/product/1261) | 2025-01-06 01:25:44 |
|
||||
| tcr | [容器镜像服务](https://cloud.tencent.com/document/product/1141) | 2025-03-28 02:01:20 |
|
||||
| tcss | [容器安全服务](https://cloud.tencent.com/document/product/1285) | 2025-04-03 18:33:40 |
|
||||
| tdcpg | [TDSQL-C PostgreSQL 版](https://cloud.tencent.com/document/product/1556) | 2025-03-20 12:23:05 |
|
||||
| tdid | [分布式身份](https://cloud.tencent.com/document/product/1439) | 2025-03-28 02:04:11 |
|
||||
| tdmq | [消息队列 TDMQ](https://cloud.tencent.com/document/product/1179) | 2025-04-01 01:29:00 |
|
||||
| tds | [设备安全](https://cloud.tencent.com/document/product/1628) | 2025-03-13 02:01:24 |
|
||||
| tem | [弹性微服务](https://cloud.tencent.com/document/product/1371) | 2024-12-31 01:29:59 |
|
||||
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2025-04-03 01:29:26 |
|
||||
| thpc | [高性能计算平台](https://cloud.tencent.com/document/product/1527) | 2025-03-28 02:07:07 |
|
||||
| tia | [智能钛机器学习](https://cloud.tencent.com/document/product/851) | 2021-10-21 11:12:52 |
|
||||
| tic | [资源编排 TIC](https://cloud.tencent.com/document/product/1213) | 2023-08-17 05:26:08 |
|
||||
| ticm | [智能鉴黄](https://cloud.tencent.com/document/product/864) | 2021-01-07 08:08:15 |
|
||||
| tics | [威胁情报云查服务](https://cloud.tencent.com/document/product/1013) | 2024-03-20 01:27:08 |
|
||||
| tiems | [腾讯云 TI 平台 TI-EMS ](https://cloud.tencent.com/document/product/1120) | 2022-07-19 06:19:39 |
|
||||
| tiia | [图像分析](https://cloud.tencent.com/document/product/865) | 2024-12-23 11:03:45 |
|
||||
| tione | [TI-ONE 训练平台](https://cloud.tencent.com/document/product/851) | 2025-04-03 01:29:58 |
|
||||
| tiw | [互动白板](https://cloud.tencent.com/document/product/1137) | 2025-03-14 18:22:24 |
|
||||
| tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2025-03-28 02:09:13 |
|
||||
| tkgdq | [腾讯知识图谱数据查询](https://cloud.tencent.com/document/product) | 2020-03-10 00:51:44 |
|
||||
| tms | [文本内容安全](https://cloud.tencent.com/document/product/1124) | 2025-03-07 01:28:04 |
|
||||
| tmt | [机器翻译](https://cloud.tencent.com/document/product/551) | 2025-03-28 02:09:24 |
|
||||
| tourism | [文旅客情大数据](https://cloud.tencent.com/document/product/1684) | 2024-03-20 01:28:59 |
|
||||
| trabbit | [消息队列 RabbitMQ Serverless 版](https://cloud.tencent.com/document/product/1495) | 2025-02-21 02:04:45 |
|
||||
| trdp | [流量风险决策平台](https://cloud.tencent.com/document/product/1604) | 2023-05-18 02:01:19 |
|
||||
| trocket | [消息队列 RocketMQ 版](https://cloud.tencent.com/document/product/1493) | 2025-03-28 02:09:45 |
|
||||
| trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2025-03-06 01:27:29 |
|
||||
| trro | [实时互动-工业能源版](https://cloud.tencent.com/document/product/1584) | 2025-03-31 12:32:21 |
|
||||
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2025-04-03 01:31:08 |
|
||||
| tse | [微服务引擎](https://cloud.tencent.com/document/product/1364) | 2025-04-03 01:31:18 |
|
||||
| tsf | [微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2025-03-27 02:08:38 |
|
||||
| tsi | [腾讯同传系统](https://cloud.tencent.com/document/product/1399) | 2024-10-23 01:36:51 |
|
||||
| tsw | [微服务观测平台 TSW](https://cloud.tencent.com/document/product/1311) | 2024-03-20 01:30:06 |
|
||||
| tts | [语音合成](https://cloud.tencent.com/document/product/1073) | 2024-12-27 11:25:13 |
|
||||
| ump | [客流数字化平台](https://cloud.tencent.com/document/product/1320) | 2024-03-20 01:30:08 |
|
||||
| vcg | [视频生成](https://cloud.tencent.com/document/product/1770) | 2024-11-22 12:20:45 |
|
||||
| vclm | [大模型视频创作引擎](https://cloud.tencent.com/document/product/1616) | 2025-03-13 02:09:17 |
|
||||
| vcube | [音视频终端引擎](https://cloud.tencent.com/document/product/1449) | 2025-03-25 15:52:47 |
|
||||
| vdb | [向量数据库](https://cloud.tencent.com/document/product/1709) | 2025-04-01 01:32:28 |
|
||||
| vm | [视频内容安全](https://cloud.tencent.com/document/product/1265) | 2025-03-03 01:29:20 |
|
||||
| vms | [语音消息](https://cloud.tencent.com/document/product/1128) | 2025-02-13 02:09:44 |
|
||||
| vod | [云点播](https://cloud.tencent.com/document/product/266) | 2025-04-02 01:33:31 |
|
||||
| vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2025-04-02 01:33:36 |
|
||||
| vrs | [声音复刻](https://cloud.tencent.com/document/product/1283) | 2025-03-19 02:23:02 |
|
||||
| vtc | [视频转译](https://cloud.tencent.com/document/product/1769) | 2024-10-16 01:32:39 |
|
||||
| waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2025-03-28 02:18:53 |
|
||||
| wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2024-11-20 02:21:21 |
|
||||
| wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2025-04-03 01:34:17 |
|
||||
| weilingwith | [微瓴同业开放平台](https://cloud.tencent.com/document/product/1693) | 2025-04-01 01:35:15 |
|
||||
| wss | [SSL证书管理服务](https://cloud.tencent.com/document/product) | 2020-04-01 08:53:44 |
|
||||
| yinsuda | [音速达直播音乐版权引擎](https://cloud.tencent.com/document/product/1592) | 2024-06-05 02:38:46 |
|
||||
| youmall | [](https://cloud.tencent.com/document/product) | 2019-01-11 11:24:15 |
|
||||
| yunjing | [主机安全](https://cloud.tencent.com/document/product) | 2020-09-15 08:08:47 |
|
||||
| yunsou | [腾讯云搜TCS](https://cloud.tencent.com/document/product/270) | 2024-03-20 01:33:14 |
|
40
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Common/Base.php
vendored
Normal file
40
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Common/Base.php
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* QcloudApi_Common_Base
|
||||
*/
|
||||
abstract class QcloudApi_Common_Base
|
||||
{
|
||||
/**
|
||||
* $_error
|
||||
* 错误号
|
||||
*/
|
||||
protected $_error = 0;
|
||||
|
||||
/**
|
||||
* setError
|
||||
* 设置错误信息
|
||||
*
|
||||
* @param int $code 错误号
|
||||
* @param string $message 错误信息
|
||||
* @param string $ext 扩展信息
|
||||
* @return object
|
||||
*/
|
||||
public function setError($code, $message, $ext = '')
|
||||
{
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Common/Error.php';
|
||||
|
||||
$this->_error = new QcloudApi_Common_Error($code, $message, $ext);
|
||||
return $this->_error;
|
||||
}
|
||||
|
||||
/**
|
||||
* getError
|
||||
* 获取错误信息
|
||||
*
|
||||
* @return object
|
||||
*/
|
||||
public function getError()
|
||||
{
|
||||
return $this->_error;
|
||||
}
|
||||
}
|
75
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Common/Error.php
vendored
Normal file
75
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Common/Error.php
vendored
Normal file
@ -0,0 +1,75 @@
|
||||
<?php
|
||||
/**
|
||||
* QcloudApi_Common_Error
|
||||
*/
|
||||
class QcloudApi_Common_Error
|
||||
{
|
||||
/**
|
||||
* LOCAL_ERROR_CODE
|
||||
*/
|
||||
const LOCAL_ERROR_CODE = 3000;
|
||||
|
||||
/**
|
||||
* RESOURCE_PARTLY_FAILED
|
||||
*/
|
||||
const RESOURCE_PARTLY_FAILED = 5400;
|
||||
|
||||
/**
|
||||
* $_code
|
||||
* 错误号
|
||||
*/
|
||||
protected $_code;
|
||||
|
||||
/**
|
||||
* $_message
|
||||
* 错误信息
|
||||
*/
|
||||
protected $_message;
|
||||
|
||||
/**
|
||||
* $_ext
|
||||
* 扩展信息
|
||||
*/
|
||||
protected $_ext;
|
||||
|
||||
/**
|
||||
* __construct
|
||||
* @param int $code 错误号
|
||||
* @param string $message 错误信息
|
||||
* @param string $ext 扩展信息
|
||||
*/
|
||||
public function __construct($code, $message, $ext = '')
|
||||
{
|
||||
$code = (int) $code;
|
||||
$this->_code = $code ? $code : self::LOCAL_ERROR_CODE;
|
||||
$this->_message = $message;
|
||||
$this->_ext = $ext;
|
||||
}
|
||||
|
||||
/**
|
||||
* getCode
|
||||
* 获取错误号
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->_code;
|
||||
}
|
||||
|
||||
/**
|
||||
* getMessage
|
||||
* 获取错误信息
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->_message;
|
||||
}
|
||||
|
||||
/**
|
||||
* getExt
|
||||
* 获取扩展信息
|
||||
*/
|
||||
public function getExt()
|
||||
{
|
||||
return $this->_ext;
|
||||
}
|
||||
}
|
183
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Common/Request.php
vendored
Normal file
183
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Common/Request.php
vendored
Normal file
@ -0,0 +1,183 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Common/Sign.php';
|
||||
/**
|
||||
* QcloudApi_Common_Request
|
||||
*/
|
||||
class QcloudApi_Common_Request
|
||||
{
|
||||
/**
|
||||
* $_requestUrl
|
||||
* 请求url
|
||||
* @var string
|
||||
*/
|
||||
protected static $_requestUrl = '';
|
||||
|
||||
/**
|
||||
* $_rawResponse
|
||||
* 原始的返回信息
|
||||
* @var string
|
||||
*/
|
||||
protected static $_rawResponse = '';
|
||||
|
||||
/**
|
||||
* $_version
|
||||
* @var string
|
||||
*/
|
||||
protected static $_version = 'SDK_PHP_2.0.6';
|
||||
|
||||
/**
|
||||
* $_timeOut
|
||||
* 设置连接主机的超时时间
|
||||
* @var int 数量级:秒
|
||||
* */
|
||||
protected static $_timeOut = 10;
|
||||
|
||||
/**
|
||||
* getRequestUrl
|
||||
* 获取请求url
|
||||
*/
|
||||
public static function getRequestUrl()
|
||||
{
|
||||
return self::$_requestUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* getRawResponse
|
||||
* 获取原始的返回信息
|
||||
*/
|
||||
public static function getRawResponse()
|
||||
{
|
||||
return self::$_rawResponse;
|
||||
}
|
||||
|
||||
/**
|
||||
* generateUrl
|
||||
* 生成请求的URL
|
||||
*
|
||||
* @param array $paramArray
|
||||
* @param string $secretId
|
||||
* @param string $secretKey
|
||||
* @param string $requestHost
|
||||
* @param string $requestPath
|
||||
* @param string $requestMethod
|
||||
* @return
|
||||
*/
|
||||
public static function generateUrl($paramArray, $secretId, $secretKey, $requestMethod, $requestHost, $requestPath) {
|
||||
|
||||
if(!isset($paramArray['SecretId']))
|
||||
$paramArray['SecretId'] = $secretId;
|
||||
|
||||
if (!isset($paramArray['Nonce']))
|
||||
$paramArray['Nonce'] = rand(1, 65535);
|
||||
|
||||
if (!isset($paramArray['Timestamp']))
|
||||
$paramArray['Timestamp'] = time();
|
||||
|
||||
$signMethod = 'HmacSHA1';
|
||||
if (isset($paramArray['SignatureMethod']) && $paramArray['SignatureMethod'] == "HmacSHA256")
|
||||
$signMethod= 'HmacSHA256';
|
||||
|
||||
$paramArray['RequestClient'] = self::$_version;
|
||||
$plainText = QcloudApi_Common_Sign::makeSignPlainText($paramArray,
|
||||
$requestMethod, $requestHost, $requestPath);
|
||||
|
||||
$paramArray['Signature'] = QcloudApi_Common_Sign::sign($plainText, $secretKey, $signMethod);
|
||||
|
||||
$url = 'https://' . $requestHost . $requestPath;
|
||||
if ($requestMethod == 'GET') {
|
||||
$url .= '?' . http_build_query($paramArray);
|
||||
}
|
||||
|
||||
return $url;
|
||||
}
|
||||
|
||||
/**
|
||||
* send
|
||||
* 发起请求
|
||||
* @param array $paramArray 请求参数
|
||||
* @param string $secretId secretId
|
||||
* @param string $secretKey secretKey
|
||||
* @param string $requestMethod 请求方式,GET/POST
|
||||
* @param string $requestHost 接口域名
|
||||
* @param string $requestPath url路径
|
||||
* @return
|
||||
*/
|
||||
public static function send($paramArray, $secretId, $secretKey, $requestMethod, $requestHost, $requestPath)
|
||||
{
|
||||
|
||||
if(!isset($paramArray['SecretId']))
|
||||
$paramArray['SecretId'] = $secretId;
|
||||
|
||||
if (!isset($paramArray['Nonce']))
|
||||
$paramArray['Nonce'] = rand(1, 65535);
|
||||
|
||||
if (!isset($paramArray['Timestamp']))
|
||||
$paramArray['Timestamp'] = time();
|
||||
|
||||
$signMethod = 'HmacSHA1';
|
||||
if (isset($paramArray['SignatureMethod']) && $paramArray['SignatureMethod'] == "HmacSHA256")
|
||||
$signMethod= 'HmacSHA256';
|
||||
|
||||
$paramArray['RequestClient'] = self::$_version;
|
||||
$plainText = QcloudApi_Common_Sign::makeSignPlainText($paramArray,
|
||||
$requestMethod, $requestHost, $requestPath);
|
||||
|
||||
$paramArray['Signature'] = QcloudApi_Common_Sign::sign($plainText, $secretKey, $signMethod);
|
||||
|
||||
$url = 'https://' . $requestHost . $requestPath;
|
||||
|
||||
$ret = self::_sendRequest($url, $paramArray, $requestMethod);
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* _sendRequest
|
||||
* @param string $url 请求url
|
||||
* @param array $paramArray 请求参数
|
||||
* @param string $method 请求方法
|
||||
* @return
|
||||
*/
|
||||
protected static function _sendRequest($url, $paramArray, $method = 'POST')
|
||||
{
|
||||
|
||||
$ch = curl_init();
|
||||
|
||||
if ($method == 'POST')
|
||||
{
|
||||
$paramArray = is_array( $paramArray ) ? http_build_query( $paramArray ) : $paramArray;
|
||||
curl_setopt($ch, CURLOPT_POST, 1);
|
||||
curl_setopt($ch, CURLOPT_POSTFIELDS, $paramArray);
|
||||
}
|
||||
else
|
||||
{
|
||||
$url .= '?' . http_build_query($paramArray);
|
||||
}
|
||||
|
||||
self::$_requestUrl = $url;
|
||||
|
||||
curl_setopt($ch, CURLOPT_URL, $url);
|
||||
curl_setopt($ch, CURLOPT_TIMEOUT,self::$_timeOut);
|
||||
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
|
||||
if (false !== strpos($url, "https")) {
|
||||
// 证书
|
||||
// curl_setopt($ch,CURLOPT_CAINFO,"ca.crt");
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
||||
}
|
||||
$resultStr = curl_exec($ch);
|
||||
|
||||
self::$_rawResponse = $resultStr;
|
||||
|
||||
$result = json_decode($resultStr, true);
|
||||
if (!$result)
|
||||
{
|
||||
return $resultStr;
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
}
|
||||
|
102
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Common/Sign.php
vendored
Normal file
102
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Common/Sign.php
vendored
Normal file
@ -0,0 +1,102 @@
|
||||
<?php
|
||||
/**
|
||||
* QcloudApi_Common_Sign
|
||||
* 签名类
|
||||
*/
|
||||
class QcloudApi_Common_Sign
|
||||
{
|
||||
/**
|
||||
* sign
|
||||
* 生成签名
|
||||
* @param string $srcStr 拼接签名源文字符串
|
||||
* @param string $secretKey secretKey
|
||||
* @param string $method 请求方法
|
||||
* @return
|
||||
*/
|
||||
public static function sign($srcStr, $secretKey, $method = 'HmacSHA1')
|
||||
{
|
||||
switch ($method) {
|
||||
case 'HmacSHA1':
|
||||
$retStr = base64_encode(hash_hmac('sha1', $srcStr, $secretKey, true));
|
||||
break;
|
||||
case 'HmacSHA256':
|
||||
$retStr = base64_encode(hash_hmac('sha256', $srcStr, $secretKey, true));
|
||||
break;
|
||||
default:
|
||||
throw new Exception($method . ' is not a supported encrypt method');
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
|
||||
return $retStr;
|
||||
}
|
||||
|
||||
/**
|
||||
* makeSignPlainText
|
||||
* 生成拼接签名源文字符串
|
||||
* @param array $requestParams 请求参数
|
||||
* @param string $requestMethod 请求方法
|
||||
* @param string $requestHost 接口域名
|
||||
* @param string $requestPath url路径
|
||||
* @return
|
||||
*/
|
||||
public static function makeSignPlainText($requestParams,
|
||||
$requestMethod = 'GET', $requestHost = YUNAPI_URL,
|
||||
$requestPath = '/v2/index.php')
|
||||
{
|
||||
|
||||
$url = $requestHost . $requestPath;
|
||||
|
||||
// 取出所有的参数
|
||||
$paramStr = self::_buildParamStr($requestParams, $requestMethod);
|
||||
|
||||
$plainText = $requestMethod . $url . $paramStr;
|
||||
|
||||
return $plainText;
|
||||
}
|
||||
|
||||
/**
|
||||
* _buildParamStr
|
||||
* 拼接参数
|
||||
* @param array $requestParams 请求参数
|
||||
* @param string $requestMethod 请求方法
|
||||
* @return
|
||||
*/
|
||||
protected static function _buildParamStr($requestParams, $requestMethod = 'GET')
|
||||
{
|
||||
$paramStr = '';
|
||||
ksort($requestParams);
|
||||
$i = 0;
|
||||
foreach ($requestParams as $key => $value)
|
||||
{
|
||||
if ($key == 'Signature')
|
||||
{
|
||||
continue;
|
||||
}
|
||||
// 排除上传文件的参数
|
||||
if ($requestMethod == 'POST' && substr($value, 0, 1) == '@') {
|
||||
continue;
|
||||
}
|
||||
// 把 参数中的 _ 替换成 .
|
||||
if (strpos($key, '_'))
|
||||
{
|
||||
$key = str_replace('_', '.', $key);
|
||||
}
|
||||
|
||||
if ($i == 0)
|
||||
{
|
||||
$paramStr .= '?';
|
||||
}
|
||||
else
|
||||
{
|
||||
$paramStr .= '&';
|
||||
}
|
||||
$paramStr .= $key . '=' . $value;
|
||||
++$i;
|
||||
}
|
||||
|
||||
return $paramStr;
|
||||
}
|
||||
|
||||
}
|
||||
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Account.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Account.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Account
|
||||
* 用户账户模块类
|
||||
*/
|
||||
class QcloudApi_Module_Account extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'account.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Apigateway.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Apigateway.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Apigateway
|
||||
* API网关
|
||||
*/
|
||||
class QcloudApi_Module_Apigateway extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'apigateway.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Athena.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Athena.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Athena
|
||||
* https://cloud.tencent.com/document/product/671
|
||||
*/
|
||||
class QcloudApi_Module_Athena extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'athena.api.qcloud.com';
|
||||
}
|
262
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Base.php
vendored
Normal file
262
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Base.php
vendored
Normal file
@ -0,0 +1,262 @@
|
||||
<?php
|
||||
if (!defined('QCLOUDAPI_ROOT_PATH')) {
|
||||
// 目录入口
|
||||
define('QCLOUDAPI_ROOT_PATH', dirname(dirname(__FILE__)));
|
||||
}
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Common/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Base
|
||||
* 模块基类
|
||||
*/
|
||||
abstract class QcloudApi_Module_Base extends QcloudApi_Common_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = '';
|
||||
|
||||
/**
|
||||
* $_serverUri
|
||||
* url路径
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverUri = '/v2/index.php';
|
||||
|
||||
/**
|
||||
* $_secretId
|
||||
* secretId
|
||||
* @var string
|
||||
*/
|
||||
protected $_secretId = "";
|
||||
|
||||
/**
|
||||
* $_secretKey
|
||||
* secretKey
|
||||
* @var string
|
||||
*/
|
||||
protected $_secretKey = "";
|
||||
|
||||
/**
|
||||
* $_defaultRegion
|
||||
* 区域参数
|
||||
* @var string
|
||||
*/
|
||||
protected $_defaultRegion = "";
|
||||
|
||||
/**
|
||||
* $_requestMethod
|
||||
* 请求方法
|
||||
* @var string
|
||||
*/
|
||||
protected $_requestMethod = "GET";
|
||||
|
||||
/**
|
||||
* __construct
|
||||
* @param array $config [description]
|
||||
*/
|
||||
public function __construct($config = array())
|
||||
{
|
||||
if (!empty($config))
|
||||
$this->setConfig($config);
|
||||
}
|
||||
|
||||
/**
|
||||
* setConfig
|
||||
* 设置配置
|
||||
* @param array $config 模块配置
|
||||
*/
|
||||
public function setConfig($config)
|
||||
{
|
||||
if (!is_array($config) || !count($config))
|
||||
return false;
|
||||
|
||||
foreach ($config as $key => $val) {
|
||||
switch ($key) {
|
||||
case 'SecretId':
|
||||
$this->setConfigSecretId($val);
|
||||
break;
|
||||
|
||||
case 'SecretKey':
|
||||
$this->setConfigSecretKey($val);
|
||||
break;
|
||||
|
||||
case 'DefaultRegion':
|
||||
$this->setConfigDefaultRegion($val);
|
||||
break;
|
||||
|
||||
case 'RequestMethod':
|
||||
$this->setConfigRequestMethod($val);
|
||||
break;
|
||||
|
||||
default:
|
||||
;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* setConfigSecretId
|
||||
* 设置secretId
|
||||
* @param string $secretId secretId
|
||||
*/
|
||||
public function setConfigSecretId($secretId)
|
||||
{
|
||||
$this->_secretId = $secretId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* setConfigSecretKey
|
||||
* 设置secretKey
|
||||
* @param string $secretKey
|
||||
*/
|
||||
public function setConfigSecretKey($secretKey)
|
||||
{
|
||||
$this->_secretKey = $secretKey;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* setConfigDefaultRegion
|
||||
* 设置区域参数
|
||||
* @param string $region
|
||||
*/
|
||||
public function setConfigDefaultRegion($region)
|
||||
{
|
||||
$this->_defaultRegion = $region;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* setConfigRequestMethod
|
||||
* 设置请求方法
|
||||
* @param string $method
|
||||
*/
|
||||
public function setConfigRequestMethod($method)
|
||||
{
|
||||
$this->_requestMethod = strtoupper($method);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* getLastRequest
|
||||
* 获取上次请求的url
|
||||
* @return
|
||||
*/
|
||||
public function getLastRequest()
|
||||
{
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Common/Request.php';
|
||||
return QcloudApi_Common_Request::getRequestUrl();
|
||||
}
|
||||
|
||||
/**
|
||||
* getLastResponse
|
||||
* 获取请求的原始返回
|
||||
* @return
|
||||
*/
|
||||
public function getLastResponse()
|
||||
{
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Common/Request.php';
|
||||
return QcloudApi_Common_Request::getRawResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* generateUrl
|
||||
* 生成请求的URL,不发起请求
|
||||
* @param string $name 接口方法名
|
||||
* @param array $params 请求参数
|
||||
* @return
|
||||
*/
|
||||
public function generateUrl($name, $params)
|
||||
{
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Common/Request.php';
|
||||
|
||||
$action = ucfirst($name);
|
||||
$params['Action'] = $action;
|
||||
|
||||
if (!isset($params['Region']))
|
||||
$params['Region'] = $this->_defaultRegion;
|
||||
|
||||
return QcloudApi_Common_Request::generateUrl($params, $this->_secretId, $this->_secretKey, $this->_requestMethod,
|
||||
$this->_serverHost, $this->_serverUri);
|
||||
}
|
||||
|
||||
/**
|
||||
* __call
|
||||
* 通过__call转发请求
|
||||
* @param string $name 方法名
|
||||
* @param array $arguments 参数
|
||||
* @return
|
||||
*/
|
||||
public function __call($name, $arguments)
|
||||
{
|
||||
$response = $this->_dispatchRequest($name, $arguments);
|
||||
|
||||
return $this->_dealResponse($response);
|
||||
}
|
||||
|
||||
/**
|
||||
* _dispatchRequest
|
||||
* 发起接口请求
|
||||
* @param string $name 接口名
|
||||
* @param array $arguments 接口参数
|
||||
* @return
|
||||
*/
|
||||
protected function _dispatchRequest($name, $arguments)
|
||||
{
|
||||
$action = ucfirst($name);
|
||||
|
||||
$params = array();
|
||||
if (is_array($arguments) && !empty($arguments)) {
|
||||
$params = (array) $arguments[0];
|
||||
}
|
||||
$params['Action'] = $action;
|
||||
|
||||
if (!isset($params['Region']))
|
||||
$params['Region'] = $this->_defaultRegion;
|
||||
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Common/Request.php';
|
||||
|
||||
$response = QcloudApi_Common_Request::send($params, $this->_secretId, $this->_secretKey, $this->_requestMethod,
|
||||
$this->_serverHost, $this->_serverUri);
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
* _dealResponse
|
||||
* 处理返回
|
||||
* @param array $rawResponse
|
||||
* @return
|
||||
*/
|
||||
protected function _dealResponse($rawResponse)
|
||||
{
|
||||
if (!is_array($rawResponse) || (!isset($rawResponse['code']) && !isset($rawResponse['Response']))) {
|
||||
$this->setError("", 'request falied!');
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($rawResponse['code']) {
|
||||
$ext = '';
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Common/Error.php';
|
||||
if (isset($rawResponse['detail'])) {
|
||||
// 批量异步操作,返回任务失败信息
|
||||
$ext = $rawResponse['detail'];
|
||||
}
|
||||
$this->setError($rawResponse['code'], $rawResponse['message'], $ext);
|
||||
return false;
|
||||
}
|
||||
|
||||
unset($rawResponse['code'], $rawResponse['message']);
|
||||
|
||||
if (count($rawResponse))
|
||||
return $rawResponse;
|
||||
else
|
||||
return true;
|
||||
}
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Batch.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Batch.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Batch
|
||||
* 批量计算
|
||||
*/
|
||||
class QcloudApi_Module_Batch extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'batch.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bgpip.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bgpip.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Bgpip
|
||||
* 大禹网络安全模块
|
||||
*/
|
||||
class QcloudApi_Module_Bgpip extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'bgpip.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bill.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bill.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Bill
|
||||
* Bill账单模块类
|
||||
*/
|
||||
class QcloudApi_Module_Bill extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'bill.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bm.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bm.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Bm
|
||||
* 黑石类
|
||||
*/
|
||||
class QcloudApi_Module_Bm extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'bm.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bmeip.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bmeip.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Bmeip
|
||||
* 黑石eip模块类
|
||||
*/
|
||||
class QcloudApi_Module_Bmeip extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'bmeip.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bmlb.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bmlb.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Bmlb
|
||||
* 黑石LB类
|
||||
*/
|
||||
class QcloudApi_Module_Bmlb extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'bmlb.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bmvpc.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Bmvpc.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Bmvpc
|
||||
* 黑石VPC模块类
|
||||
*/
|
||||
class QcloudApi_Module_Bmvpc extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'bmvpc.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cbs.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cbs.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Cbs
|
||||
* 云硬盘模块类
|
||||
*/
|
||||
class QcloudApi_Module_Cbs extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'cbs.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Ccs.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Ccs.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Ccs
|
||||
* 容器服务
|
||||
*/
|
||||
class QcloudApi_Module_Ccs extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'ccs.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cdb.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cdb.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Cdb
|
||||
* CDB数据库模块类
|
||||
*/
|
||||
class QcloudApi_Module_Cdb extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'cdb.api.qcloud.com';
|
||||
}
|
51
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cdn.php
vendored
Normal file
51
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cdn.php
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Cdn
|
||||
* CDN模块类
|
||||
*/
|
||||
class QcloudApi_Module_Cdn extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'cdn.api.qcloud.com';
|
||||
|
||||
/**
|
||||
* UploadCdnEntity
|
||||
* 上传CDN文件
|
||||
* @param array $params 请求参数
|
||||
*/
|
||||
public function UploadCdnEntity($params) {
|
||||
$name = 'UploadCdnEntity';
|
||||
|
||||
$entityFile = $params['entityFile'];
|
||||
if (!file_exists($entityFile)) {
|
||||
$this->setError('', 'entityFile is not exists.');
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!$params['entityFileMd5']) {
|
||||
$params['entityFileMd5'] = md5_file($entityFile);
|
||||
}
|
||||
$params['entityFile'] = '@' . $entityFile;
|
||||
|
||||
$response = $this->_dispatchRequest($name, array($params));
|
||||
|
||||
if (!$response) {
|
||||
$this->setError("", 'request falied!');
|
||||
return false;
|
||||
}
|
||||
|
||||
if (is_array($response) && $response['code']) {
|
||||
$this->setError($response['code'], $response['message']);
|
||||
return false;
|
||||
}
|
||||
|
||||
unset($response['code'], $response['message']);
|
||||
|
||||
return $response;
|
||||
}
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cloudaudit.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cloudaudit.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Cloudaudit
|
||||
* 云审计模块类
|
||||
*/
|
||||
class QcloudApi_Module_Cloudaudit extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'cloudaudit.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cmem.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cmem.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Cmem
|
||||
* 云缓存模块类
|
||||
*/
|
||||
class QcloudApi_Module_Cmem extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'cmem.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cns.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cns.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Cns
|
||||
* 云解析模块类
|
||||
*/
|
||||
class QcloudApi_Module_Cns extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'cns.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cvm.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Cvm.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Cvm
|
||||
* 云服务器模块类
|
||||
*/
|
||||
class QcloudApi_Module_Cvm extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'cvm.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Dfw.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Dfw.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Dfw
|
||||
* 安全组
|
||||
*/
|
||||
class QcloudApi_Module_Dfw extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'dfw.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Eip.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Eip.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Eip
|
||||
* 弹性公网Ip模块类
|
||||
*/
|
||||
class QcloudApi_Module_Eip extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'eip.api.qcloud.com';
|
||||
}
|
14
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Emr.php
vendored
Normal file
14
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Emr.php
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* https://cloud.tencent.com/document/product/589
|
||||
*/
|
||||
class QcloudApi_Module_Emr extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'emr.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Feecenter.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Feecenter.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Feecenter
|
||||
* 费用中心类
|
||||
*/
|
||||
class QcloudApi_Module_Feecenter extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'feecenter.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Image.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Image.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Image
|
||||
* 镜像模块类
|
||||
*/
|
||||
class QcloudApi_Module_Image extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'image.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Lb.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Lb.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Lb
|
||||
* 负载均衡模块类
|
||||
*/
|
||||
class QcloudApi_Module_Lb extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'lb.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Live.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Live.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Live
|
||||
* 直播模块类
|
||||
*/
|
||||
class QcloudApi_Module_Live extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'live.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Market.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Market.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Market
|
||||
* Market模块类
|
||||
*/
|
||||
class QcloudApi_Module_Market extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'market.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Monitor.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Monitor.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Monitor
|
||||
* 云监控模块类
|
||||
*/
|
||||
class QcloudApi_Module_Monitor extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'monitor.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Partners.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Partners.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Partners
|
||||
* 渠道合作伙伴
|
||||
*/
|
||||
class QcloudApi_Module_Partners extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'partners.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Redis.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Redis.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Redis
|
||||
* 弹性缓存
|
||||
*/
|
||||
class QcloudApi_Module_Redis extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'redis.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Scaling.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Scaling.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Scaling
|
||||
* 弹性伸缩模块类
|
||||
*/
|
||||
class QcloudApi_Module_Scaling extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'Scaling.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Scf.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Scf.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Scf
|
||||
* 无服务器云函数
|
||||
*/
|
||||
class QcloudApi_Module_Scf extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'scf.api.qcloud.com';
|
||||
}
|
45
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Sec.php
vendored
Normal file
45
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Sec.php
vendored
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Sec
|
||||
* 云安全模块类
|
||||
*/
|
||||
class QcloudApi_Module_Sec extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'csec.api.qcloud.com';
|
||||
|
||||
/**
|
||||
* captchaQuery
|
||||
* 获取验证码
|
||||
* @param array $params 请求参数
|
||||
* @return
|
||||
*/
|
||||
public function captchaQuery($params) {
|
||||
|
||||
$name = 'captchaQuery';
|
||||
$response = $this->_dispatchRequest($name, array($params));
|
||||
|
||||
if (!$response) {
|
||||
$this->setError("", 'request falied!');
|
||||
return false;
|
||||
}
|
||||
|
||||
if (is_array($response) && $response['code']) {
|
||||
$this->setError($response['code'], $response['message']);
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($params['script'] == 1) {
|
||||
return $response;
|
||||
}
|
||||
|
||||
unset($response['code'], $response['message']);
|
||||
|
||||
return $response;
|
||||
}
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Snapshot.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Snapshot.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Snapshot
|
||||
* 快照模块类
|
||||
*/
|
||||
class QcloudApi_Module_Snapshot extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'snapshot.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Sts.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Sts.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Sts
|
||||
* https://cloud.tencent.com/document/product/598
|
||||
*/
|
||||
class QcloudApi_Module_Sts extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'sts.api.qcloud.com';
|
||||
}
|
14
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Tbaas.php
vendored
Normal file
14
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Tbaas.php
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* https://cloud.tencent.com/document/product/663
|
||||
*/
|
||||
class QcloudApi_Module_Tbaas extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'tbaas.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Tdsql.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Tdsql.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Tdsql
|
||||
* 云数据库Tdsql模块类
|
||||
*/
|
||||
class QcloudApi_Module_Tdsql extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'tdsql.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Tmt.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Tmt.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Tmt
|
||||
* 机器翻译
|
||||
*/
|
||||
class QcloudApi_Module_Tmt extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'tmt.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Trade.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Trade.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Trade
|
||||
* 产品售卖模块类
|
||||
*/
|
||||
class QcloudApi_Module_Trade extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'trade.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Vod.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Vod.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Vod
|
||||
* 视频云模块类
|
||||
*/
|
||||
class QcloudApi_Module_Vod extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'vod.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Vpc.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Vpc.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Vpc
|
||||
* VPC模块类
|
||||
*/
|
||||
class QcloudApi_Module_Vpc extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'vpc.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Wenzhi.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Wenzhi.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_WENZHI
|
||||
* 文智模块类
|
||||
*/
|
||||
class QcloudApi_Module_Wenzhi extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'wenzhi.api.qcloud.com';
|
||||
}
|
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Yunsou.php
vendored
Normal file
15
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/Module/Yunsou.php
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require_once QCLOUDAPI_ROOT_PATH . '/Module/Base.php';
|
||||
/**
|
||||
* QcloudApi_Module_Vod
|
||||
* 视频云模块类
|
||||
*/
|
||||
class QcloudApi_Module_Yunsou extends QcloudApi_Module_Base
|
||||
{
|
||||
/**
|
||||
* $_serverHost
|
||||
* 接口域名
|
||||
* @var string
|
||||
*/
|
||||
protected $_serverHost = 'yunsou.api.qcloud.com';
|
||||
}
|
283
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/QcloudApi.php
vendored
Normal file
283
vendor/tencentcloud/tencentcloud-sdk-php/src/QcloudApi/QcloudApi.php
vendored
Normal file
@ -0,0 +1,283 @@
|
||||
<?php
|
||||
// 目录入口
|
||||
define('QCLOUDAPI_ROOT_PATH', dirname(__FILE__));
|
||||
/**
|
||||
* QcloudApi
|
||||
* SDK入口文件
|
||||
*/
|
||||
class QcloudApi
|
||||
{
|
||||
/**
|
||||
* MODULE_ACCOUNT
|
||||
* 用户账户
|
||||
*/
|
||||
const MODULE_ACCOUNT = 'account';
|
||||
|
||||
/**
|
||||
* MODULE_CVM
|
||||
* 云服务器
|
||||
*/
|
||||
const MODULE_CVM = 'cvm';
|
||||
|
||||
/**
|
||||
* MODULE_CDB
|
||||
* CDB数据库
|
||||
*/
|
||||
const MODULE_CDB = 'cdb';
|
||||
|
||||
/**
|
||||
* MODULE_LB
|
||||
* 负载均衡
|
||||
*/
|
||||
const MODULE_LB = 'lb';
|
||||
|
||||
/**
|
||||
* MODULE_TRADE
|
||||
* 产品售卖
|
||||
*/
|
||||
const MODULE_TRADE = 'trade';
|
||||
|
||||
/**
|
||||
* MODULE_BILL
|
||||
* 账单
|
||||
*/
|
||||
const MODULE_BILL = 'bill';
|
||||
|
||||
/**
|
||||
* MODULE_SEC
|
||||
* 云安全
|
||||
*/
|
||||
const MODULE_SEC = 'sec';
|
||||
|
||||
/**
|
||||
* MODULE_IMAGE
|
||||
* 镜像
|
||||
*/
|
||||
const MODULE_IMAGE = 'image';
|
||||
|
||||
/**
|
||||
* MODULE_MONITOR
|
||||
* 云监控
|
||||
*/
|
||||
const MODULE_MONITOR = 'monitor';
|
||||
|
||||
/**
|
||||
* MODULE_CDN
|
||||
* CDN
|
||||
*/
|
||||
const MODULE_CDN = 'cdn';
|
||||
|
||||
/**
|
||||
* MODULE_VPC
|
||||
* VPC
|
||||
*/
|
||||
const MODULE_VPC = 'vpc';
|
||||
|
||||
/**
|
||||
* MODULE_VOD
|
||||
* VOD
|
||||
*/
|
||||
const MODULE_VOD = 'vod';
|
||||
|
||||
/**
|
||||
* YUNSOU
|
||||
*/
|
||||
const MODULE_YUNSOU = 'yunsou';
|
||||
|
||||
/**
|
||||
* cns
|
||||
*/
|
||||
const MODULE_CNS = 'cns';
|
||||
|
||||
/**
|
||||
* wenzhi
|
||||
*/
|
||||
const MODULE_WENZHI = 'wenzhi';
|
||||
|
||||
/**
|
||||
* MARKET
|
||||
*/
|
||||
const MODULE_MARKET = 'market';
|
||||
|
||||
/**
|
||||
* MODULE_EIP
|
||||
* 弹性公网Ip
|
||||
*/
|
||||
const MODULE_EIP = 'eip';
|
||||
|
||||
/**
|
||||
* MODULE_LIVE
|
||||
* 直播
|
||||
*/
|
||||
const MODULE_LIVE = 'live';
|
||||
|
||||
/**
|
||||
* MODULE_SNAPSHOT
|
||||
* 快照
|
||||
*/
|
||||
const MODULE_SNAPSHOT = 'snapshot';
|
||||
|
||||
/**
|
||||
* MODULE_CBS
|
||||
* 云硬盘
|
||||
*/
|
||||
const MODULE_CBS = 'cbs';
|
||||
|
||||
/**
|
||||
* MODULE_SCALING
|
||||
* 弹性伸缩
|
||||
*/
|
||||
const MODULE_SCALING = 'scaling';
|
||||
|
||||
/**
|
||||
* MODULE_CMEM
|
||||
* 云缓存
|
||||
*/
|
||||
const MODULE_CMEM = 'cmem';
|
||||
|
||||
/**
|
||||
* MODULE_TDSQL
|
||||
* 云数据库TDSQL
|
||||
*/
|
||||
const MODULE_TDSQL = 'tdsql';
|
||||
|
||||
/**
|
||||
* MODULE_BM
|
||||
* 黑石BM
|
||||
*/
|
||||
const MODULE_BM = 'bm';
|
||||
|
||||
/**
|
||||
* MODULE_BMLB
|
||||
* 黑石BMLB
|
||||
*/
|
||||
const MODULE_BMLB = 'bmlb';
|
||||
|
||||
/**
|
||||
* MODULE_FEECENTER
|
||||
* 费用中心
|
||||
*/
|
||||
const MODULE_FEECENTER = 'feecenter';
|
||||
|
||||
/**
|
||||
* MODULE_BMEIP
|
||||
* 黑石eip
|
||||
*/
|
||||
const MODULE_BMEIP = 'bmeip';
|
||||
|
||||
/**
|
||||
* MODULE_BMVPC
|
||||
* 黑石vpc
|
||||
*/
|
||||
const MODULE_BMVPC = 'bmvpc';
|
||||
|
||||
/**
|
||||
* MODULE_BGPIP
|
||||
* 大禹网络安全
|
||||
*/
|
||||
const MODULE_BGPIP = 'bgpip';
|
||||
|
||||
/**
|
||||
* MODULE_CLOUDAUDIT
|
||||
* 云审计模块
|
||||
*/
|
||||
const MODULE_CLOUDAUDIT = 'cloudaudit';
|
||||
|
||||
/**
|
||||
* MODULE_DFW
|
||||
* 安全组模块
|
||||
*/
|
||||
const MODULE_DFW = 'dfw';
|
||||
|
||||
/**
|
||||
* MODULE_SCF
|
||||
* 无服务器云函数
|
||||
*/
|
||||
const MODULE_SCF = 'scf';
|
||||
|
||||
/**
|
||||
* MODULE_APIGATEWAY
|
||||
* API网关
|
||||
*/
|
||||
const MODULE_APIGATEWAY = 'apigateway';
|
||||
|
||||
/**
|
||||
* MODULE_TMT
|
||||
* 机器翻译
|
||||
*/
|
||||
const MODULE_TMT = 'tmt';
|
||||
|
||||
/**
|
||||
* MODULE_BATCH
|
||||
* 批量计算
|
||||
*/
|
||||
const MODULE_BATCH = 'batch';
|
||||
|
||||
/**
|
||||
* MODULE_CCS
|
||||
* 容器服务
|
||||
*/
|
||||
const MODULE_CCS = 'ccs';
|
||||
|
||||
/**
|
||||
* MODULE_REDIS
|
||||
* 弹性缓存
|
||||
*/
|
||||
const MODULE_REDIS = 'redis';
|
||||
|
||||
/**
|
||||
* MODULE_PARTNERS
|
||||
* 渠道合作伙伴
|
||||
*/
|
||||
const MODULE_PARTNERS = 'partners';
|
||||
|
||||
/**
|
||||
* MODULE_STS
|
||||
*/
|
||||
const MODULE_STS = "sts";
|
||||
|
||||
/**
|
||||
* MODULE_ATHENA
|
||||
* 金融智能客服
|
||||
*/
|
||||
const MODULE_ATHENA = "athena";
|
||||
|
||||
/**
|
||||
* MODULE_TBAAS
|
||||
* 区块链服务
|
||||
*/
|
||||
const MODULE_TBAAS = "tbaas";
|
||||
|
||||
/**
|
||||
* MODULE_EMR
|
||||
* 弹性 MapReduce
|
||||
*/
|
||||
const MODULE_EMR = "emr";
|
||||
|
||||
/**
|
||||
* load
|
||||
* 加载模块文件
|
||||
* @param string $moduleName 模块名称
|
||||
* @param array $moduleConfig 模块配置
|
||||
* @return
|
||||
*/
|
||||
public static function load($moduleName, $moduleConfig = array())
|
||||
{
|
||||
$moduleName = ucfirst($moduleName);
|
||||
$moduleClassFile = QCLOUDAPI_ROOT_PATH . '/Module/' . $moduleName . '.php';
|
||||
|
||||
if (!file_exists($moduleClassFile)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
require_once $moduleClassFile;
|
||||
$moduleClassName = 'QcloudApi_Module_' . $moduleName;
|
||||
$moduleInstance = new $moduleClassName();
|
||||
|
||||
if (!empty($moduleConfig)) {
|
||||
$moduleInstance->setConfig($moduleConfig);
|
||||
}
|
||||
|
||||
return $moduleInstance;
|
||||
}
|
||||
}
|
69
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aai/V20180522/AaiClient.php
vendored
Normal file
69
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aai/V20180522/AaiClient.php
vendored
Normal file
@ -0,0 +1,69 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud\Aai\V20180522;
|
||||
|
||||
use TencentCloud\Common\AbstractClient;
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Credential;
|
||||
use TencentCloud\Aai\V20180522\Models as Models;
|
||||
|
||||
/**
|
||||
* @method Models\ChatResponse Chat(Models\ChatRequest $req) 提供基于文本的基础聊天能力,可以让您的应用快速拥有具备深度语义理解的机器聊天功能。
|
||||
* @method Models\SentenceRecognitionResponse SentenceRecognition(Models\SentenceRecognitionRequest $req) 识别60s内的短语音,当音频放在请求body中传输时整个请求大小不能超过600KB,当音频以url方式传输时,音频时长不可超过60s。所有请求参数放在post的body中采用x-www-form-urlencoded(数据转换成一个字符串(name1=value1&name2=value2…)进行urlencode后)编码传输。现暂只支持中文普通话识别,支持识别8k(16k)的16bit的mp3或者wav音频。
|
||||
* @method Models\SimultaneousInterpretingResponse SimultaneousInterpreting(Models\SimultaneousInterpretingRequest $req) 该接口是实时流式识别,可同时返回语音识别文本及翻译文本,当前仅支持中文和英文。该接口可配合同传windows客户端,提供会议现场同传服务。
|
||||
* @method Models\TextToVoiceResponse TextToVoice(Models\TextToVoiceRequest $req) 腾讯云语音合成技术(TTS)可以将任意文本转化为语音,实现让机器和应用张口说话。
|
||||
腾讯TTS技术可以应用到很多场景,比如,移动APP语音播报新闻;智能设备语音提醒;依靠网上现有节目或少量录音,快速合成明星语音,降低邀约成本;支持车载导航语音合成的个性化语音播报。
|
||||
内测期间免费使用。
|
||||
*/
|
||||
|
||||
class AaiClient extends AbstractClient
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $endpoint = "aai.tencentcloudapi.com";
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $service = "aai";
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $version = "2018-05-22";
|
||||
|
||||
/**
|
||||
* @param Credential $credential
|
||||
* @param string $region
|
||||
* @param ClientProfile|null $profile
|
||||
* @throws TencentCloudSDKException
|
||||
*/
|
||||
function __construct($credential, $region, $profile=null)
|
||||
{
|
||||
parent::__construct($this->endpoint, $this->version, $credential, $region, $profile);
|
||||
}
|
||||
|
||||
public function returnResponse($action, $response)
|
||||
{
|
||||
$respClass = "TencentCloud"."\\".ucfirst("aai")."\\"."V20180522\\Models"."\\".ucfirst($action)."Response";
|
||||
$obj = new $respClass();
|
||||
$obj->deserialize($response);
|
||||
return $obj;
|
||||
}
|
||||
}
|
77
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aai/V20180522/Models/ChatRequest.php
vendored
Normal file
77
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aai/V20180522/Models/ChatRequest.php
vendored
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aai\V20180522\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* Chat请求参数结构体
|
||||
*
|
||||
* @method string getText() 获取聊天输入文本
|
||||
* @method void setText(string $Text) 设置聊天输入文本
|
||||
* @method integer getProjectId() 获取腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
|
||||
* @method void setProjectId(integer $ProjectId) 设置腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
|
||||
* @method string getUser() 获取json格式,比如 {"id":"test","gender":"male"}。记录当前与机器人交互的用户id,非必须但强烈建议传入,否则多轮聊天功能会受影响
|
||||
* @method void setUser(string $User) 设置json格式,比如 {"id":"test","gender":"male"}。记录当前与机器人交互的用户id,非必须但强烈建议传入,否则多轮聊天功能会受影响
|
||||
*/
|
||||
class ChatRequest extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var string 聊天输入文本
|
||||
*/
|
||||
public $Text;
|
||||
|
||||
/**
|
||||
* @var integer 腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
|
||||
*/
|
||||
public $ProjectId;
|
||||
|
||||
/**
|
||||
* @var string json格式,比如 {"id":"test","gender":"male"}。记录当前与机器人交互的用户id,非必须但强烈建议传入,否则多轮聊天功能会受影响
|
||||
*/
|
||||
public $User;
|
||||
|
||||
/**
|
||||
* @param string $Text 聊天输入文本
|
||||
* @param integer $ProjectId 腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
|
||||
* @param string $User json格式,比如 {"id":"test","gender":"male"}。记录当前与机器人交互的用户id,非必须但强烈建议传入,否则多轮聊天功能会受影响
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("Text",$param) and $param["Text"] !== null) {
|
||||
$this->Text = $param["Text"];
|
||||
}
|
||||
|
||||
if (array_key_exists("ProjectId",$param) and $param["ProjectId"] !== null) {
|
||||
$this->ProjectId = $param["ProjectId"];
|
||||
}
|
||||
|
||||
if (array_key_exists("User",$param) and $param["User"] !== null) {
|
||||
$this->User = $param["User"];
|
||||
}
|
||||
}
|
||||
}
|
65
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aai/V20180522/Models/ChatResponse.php
vendored
Normal file
65
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aai/V20180522/Models/ChatResponse.php
vendored
Normal file
@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aai\V20180522\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* Chat返回参数结构体
|
||||
*
|
||||
* @method string getAnswer() 获取聊天输出文本
|
||||
* @method void setAnswer(string $Answer) 设置聊天输出文本
|
||||
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
*/
|
||||
class ChatResponse extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var string 聊天输出文本
|
||||
*/
|
||||
public $Answer;
|
||||
|
||||
/**
|
||||
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
*/
|
||||
public $RequestId;
|
||||
|
||||
/**
|
||||
* @param string $Answer 聊天输出文本
|
||||
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("Answer",$param) and $param["Answer"] !== null) {
|
||||
$this->Answer = $param["Answer"];
|
||||
}
|
||||
|
||||
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
|
||||
$this->RequestId = $param["RequestId"];
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,149 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aai\V20180522\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* SentenceRecognition请求参数结构体
|
||||
*
|
||||
* @method integer getProjectId() 获取腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
|
||||
* @method void setProjectId(integer $ProjectId) 设置腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
|
||||
* @method integer getSubServiceType() 获取子服务类型。2,一句话识别。
|
||||
* @method void setSubServiceType(integer $SubServiceType) 设置子服务类型。2,一句话识别。
|
||||
* @method string getEngSerViceType() 获取引擎类型。8k:电话 8k 通用模型;16k:16k 通用模型。只支持单声道音频识别。
|
||||
* @method void setEngSerViceType(string $EngSerViceType) 设置引擎类型。8k:电话 8k 通用模型;16k:16k 通用模型。只支持单声道音频识别。
|
||||
* @method integer getSourceType() 获取语音数据来源。0:语音 URL;1:语音数据(post body)。
|
||||
* @method void setSourceType(integer $SourceType) 设置语音数据来源。0:语音 URL;1:语音数据(post body)。
|
||||
* @method string getVoiceFormat() 获取识别音频的音频格式(支持mp3,wav)。
|
||||
* @method void setVoiceFormat(string $VoiceFormat) 设置识别音频的音频格式(支持mp3,wav)。
|
||||
* @method string getUsrAudioKey() 获取用户端对此任务的唯一标识,用户自助生成,用于用户查找识别结果。
|
||||
* @method void setUsrAudioKey(string $UsrAudioKey) 设置用户端对此任务的唯一标识,用户自助生成,用于用户查找识别结果。
|
||||
* @method string getUrl() 获取语音 URL,公网可下载。当 SourceType 值为 0 时须填写该字段,为 1 时不填;URL 的长度大于 0,小于 2048,需进行urlencode编码。音频时间长度要小于60s。
|
||||
* @method void setUrl(string $Url) 设置语音 URL,公网可下载。当 SourceType 值为 0 时须填写该字段,为 1 时不填;URL 的长度大于 0,小于 2048,需进行urlencode编码。音频时间长度要小于60s。
|
||||
* @method string getData() 获取语音数据,当SourceType 值为1时必须填写,为0可不写。要base64编码(采用python语言时注意读取文件应该为string而不是byte,以byte格式读取后要decode()。编码后的数据不可带有回车换行符)。音频数据要小于600kB。
|
||||
* @method void setData(string $Data) 设置语音数据,当SourceType 值为1时必须填写,为0可不写。要base64编码(采用python语言时注意读取文件应该为string而不是byte,以byte格式读取后要decode()。编码后的数据不可带有回车换行符)。音频数据要小于600kB。
|
||||
* @method integer getDataLen() 获取数据长度,当 SourceType 值为1时必须填写,为0可不写(此数据长度为数据未进行base64编码时的数据长度)。
|
||||
* @method void setDataLen(integer $DataLen) 设置数据长度,当 SourceType 值为1时必须填写,为0可不写(此数据长度为数据未进行base64编码时的数据长度)。
|
||||
*/
|
||||
class SentenceRecognitionRequest extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var integer 腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
|
||||
*/
|
||||
public $ProjectId;
|
||||
|
||||
/**
|
||||
* @var integer 子服务类型。2,一句话识别。
|
||||
*/
|
||||
public $SubServiceType;
|
||||
|
||||
/**
|
||||
* @var string 引擎类型。8k:电话 8k 通用模型;16k:16k 通用模型。只支持单声道音频识别。
|
||||
*/
|
||||
public $EngSerViceType;
|
||||
|
||||
/**
|
||||
* @var integer 语音数据来源。0:语音 URL;1:语音数据(post body)。
|
||||
*/
|
||||
public $SourceType;
|
||||
|
||||
/**
|
||||
* @var string 识别音频的音频格式(支持mp3,wav)。
|
||||
*/
|
||||
public $VoiceFormat;
|
||||
|
||||
/**
|
||||
* @var string 用户端对此任务的唯一标识,用户自助生成,用于用户查找识别结果。
|
||||
*/
|
||||
public $UsrAudioKey;
|
||||
|
||||
/**
|
||||
* @var string 语音 URL,公网可下载。当 SourceType 值为 0 时须填写该字段,为 1 时不填;URL 的长度大于 0,小于 2048,需进行urlencode编码。音频时间长度要小于60s。
|
||||
*/
|
||||
public $Url;
|
||||
|
||||
/**
|
||||
* @var string 语音数据,当SourceType 值为1时必须填写,为0可不写。要base64编码(采用python语言时注意读取文件应该为string而不是byte,以byte格式读取后要decode()。编码后的数据不可带有回车换行符)。音频数据要小于600kB。
|
||||
*/
|
||||
public $Data;
|
||||
|
||||
/**
|
||||
* @var integer 数据长度,当 SourceType 值为1时必须填写,为0可不写(此数据长度为数据未进行base64编码时的数据长度)。
|
||||
*/
|
||||
public $DataLen;
|
||||
|
||||
/**
|
||||
* @param integer $ProjectId 腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
|
||||
* @param integer $SubServiceType 子服务类型。2,一句话识别。
|
||||
* @param string $EngSerViceType 引擎类型。8k:电话 8k 通用模型;16k:16k 通用模型。只支持单声道音频识别。
|
||||
* @param integer $SourceType 语音数据来源。0:语音 URL;1:语音数据(post body)。
|
||||
* @param string $VoiceFormat 识别音频的音频格式(支持mp3,wav)。
|
||||
* @param string $UsrAudioKey 用户端对此任务的唯一标识,用户自助生成,用于用户查找识别结果。
|
||||
* @param string $Url 语音 URL,公网可下载。当 SourceType 值为 0 时须填写该字段,为 1 时不填;URL 的长度大于 0,小于 2048,需进行urlencode编码。音频时间长度要小于60s。
|
||||
* @param string $Data 语音数据,当SourceType 值为1时必须填写,为0可不写。要base64编码(采用python语言时注意读取文件应该为string而不是byte,以byte格式读取后要decode()。编码后的数据不可带有回车换行符)。音频数据要小于600kB。
|
||||
* @param integer $DataLen 数据长度,当 SourceType 值为1时必须填写,为0可不写(此数据长度为数据未进行base64编码时的数据长度)。
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("ProjectId",$param) and $param["ProjectId"] !== null) {
|
||||
$this->ProjectId = $param["ProjectId"];
|
||||
}
|
||||
|
||||
if (array_key_exists("SubServiceType",$param) and $param["SubServiceType"] !== null) {
|
||||
$this->SubServiceType = $param["SubServiceType"];
|
||||
}
|
||||
|
||||
if (array_key_exists("EngSerViceType",$param) and $param["EngSerViceType"] !== null) {
|
||||
$this->EngSerViceType = $param["EngSerViceType"];
|
||||
}
|
||||
|
||||
if (array_key_exists("SourceType",$param) and $param["SourceType"] !== null) {
|
||||
$this->SourceType = $param["SourceType"];
|
||||
}
|
||||
|
||||
if (array_key_exists("VoiceFormat",$param) and $param["VoiceFormat"] !== null) {
|
||||
$this->VoiceFormat = $param["VoiceFormat"];
|
||||
}
|
||||
|
||||
if (array_key_exists("UsrAudioKey",$param) and $param["UsrAudioKey"] !== null) {
|
||||
$this->UsrAudioKey = $param["UsrAudioKey"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Url",$param) and $param["Url"] !== null) {
|
||||
$this->Url = $param["Url"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Data",$param) and $param["Data"] !== null) {
|
||||
$this->Data = $param["Data"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DataLen",$param) and $param["DataLen"] !== null) {
|
||||
$this->DataLen = $param["DataLen"];
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aai\V20180522\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* SentenceRecognition返回参数结构体
|
||||
*
|
||||
* @method string getResult() 获取识别结果。
|
||||
* @method void setResult(string $Result) 设置识别结果。
|
||||
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
*/
|
||||
class SentenceRecognitionResponse extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var string 识别结果。
|
||||
*/
|
||||
public $Result;
|
||||
|
||||
/**
|
||||
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
*/
|
||||
public $RequestId;
|
||||
|
||||
/**
|
||||
* @param string $Result 识别结果。
|
||||
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("Result",$param) and $param["Result"] !== null) {
|
||||
$this->Result = $param["Result"];
|
||||
}
|
||||
|
||||
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
|
||||
$this->RequestId = $param["RequestId"];
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,185 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aai\V20180522\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* SimultaneousInterpreting请求参数结构体
|
||||
*
|
||||
* @method integer getProjectId() 获取腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
|
||||
* @method void setProjectId(integer $ProjectId) 设置腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
|
||||
* @method integer getSubServiceType() 获取子服务类型。0:离线语音识别。1:实时流式识别,2,一句话识别。3:同传。
|
||||
* @method void setSubServiceType(integer $SubServiceType) 设置子服务类型。0:离线语音识别。1:实时流式识别,2,一句话识别。3:同传。
|
||||
* @method string getRecEngineModelType() 获取识别引擎类型。8k_zh: 8k 中文会场模型;16k_zh:16k 中文会场模型,8k_en: 8k 英文会场模型;16k_en:16k 英文会场模型。当前仅支持16K。
|
||||
* @method void setRecEngineModelType(string $RecEngineModelType) 设置识别引擎类型。8k_zh: 8k 中文会场模型;16k_zh:16k 中文会场模型,8k_en: 8k 英文会场模型;16k_en:16k 英文会场模型。当前仅支持16K。
|
||||
* @method string getData() 获取语音数据,要base64编码。
|
||||
* @method void setData(string $Data) 设置语音数据,要base64编码。
|
||||
* @method integer getDataLen() 获取数据长度。
|
||||
* @method void setDataLen(integer $DataLen) 设置数据长度。
|
||||
* @method string getVoiceId() 获取声音id,标识一句话。
|
||||
* @method void setVoiceId(string $VoiceId) 设置声音id,标识一句话。
|
||||
* @method integer getIsEnd() 获取是否是一句话的结束。
|
||||
* @method void setIsEnd(integer $IsEnd) 设置是否是一句话的结束。
|
||||
* @method integer getVoiceFormat() 获取声音编码的格式1:pcm,4:speex,6:silk,默认为1。
|
||||
* @method void setVoiceFormat(integer $VoiceFormat) 设置声音编码的格式1:pcm,4:speex,6:silk,默认为1。
|
||||
* @method integer getOpenTranslate() 获取是否需要翻译结果,1表示需要翻译,0是不需要。
|
||||
* @method void setOpenTranslate(integer $OpenTranslate) 设置是否需要翻译结果,1表示需要翻译,0是不需要。
|
||||
* @method string getSourceLanguage() 获取如果需要翻译,表示源语言类型,可取值:zh,en。
|
||||
* @method void setSourceLanguage(string $SourceLanguage) 设置如果需要翻译,表示源语言类型,可取值:zh,en。
|
||||
* @method string getTargetLanguage() 获取如果需要翻译,表示目标语言类型,可取值:zh,en。
|
||||
* @method void setTargetLanguage(string $TargetLanguage) 设置如果需要翻译,表示目标语言类型,可取值:zh,en。
|
||||
* @method integer getSeq() 获取表明当前语音分片的索引,从0开始
|
||||
* @method void setSeq(integer $Seq) 设置表明当前语音分片的索引,从0开始
|
||||
*/
|
||||
class SimultaneousInterpretingRequest extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var integer 腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
|
||||
*/
|
||||
public $ProjectId;
|
||||
|
||||
/**
|
||||
* @var integer 子服务类型。0:离线语音识别。1:实时流式识别,2,一句话识别。3:同传。
|
||||
*/
|
||||
public $SubServiceType;
|
||||
|
||||
/**
|
||||
* @var string 识别引擎类型。8k_zh: 8k 中文会场模型;16k_zh:16k 中文会场模型,8k_en: 8k 英文会场模型;16k_en:16k 英文会场模型。当前仅支持16K。
|
||||
*/
|
||||
public $RecEngineModelType;
|
||||
|
||||
/**
|
||||
* @var string 语音数据,要base64编码。
|
||||
*/
|
||||
public $Data;
|
||||
|
||||
/**
|
||||
* @var integer 数据长度。
|
||||
*/
|
||||
public $DataLen;
|
||||
|
||||
/**
|
||||
* @var string 声音id,标识一句话。
|
||||
*/
|
||||
public $VoiceId;
|
||||
|
||||
/**
|
||||
* @var integer 是否是一句话的结束。
|
||||
*/
|
||||
public $IsEnd;
|
||||
|
||||
/**
|
||||
* @var integer 声音编码的格式1:pcm,4:speex,6:silk,默认为1。
|
||||
*/
|
||||
public $VoiceFormat;
|
||||
|
||||
/**
|
||||
* @var integer 是否需要翻译结果,1表示需要翻译,0是不需要。
|
||||
*/
|
||||
public $OpenTranslate;
|
||||
|
||||
/**
|
||||
* @var string 如果需要翻译,表示源语言类型,可取值:zh,en。
|
||||
*/
|
||||
public $SourceLanguage;
|
||||
|
||||
/**
|
||||
* @var string 如果需要翻译,表示目标语言类型,可取值:zh,en。
|
||||
*/
|
||||
public $TargetLanguage;
|
||||
|
||||
/**
|
||||
* @var integer 表明当前语音分片的索引,从0开始
|
||||
*/
|
||||
public $Seq;
|
||||
|
||||
/**
|
||||
* @param integer $ProjectId 腾讯云项目 ID,可填 0,总长度不超过 1024 字节。
|
||||
* @param integer $SubServiceType 子服务类型。0:离线语音识别。1:实时流式识别,2,一句话识别。3:同传。
|
||||
* @param string $RecEngineModelType 识别引擎类型。8k_zh: 8k 中文会场模型;16k_zh:16k 中文会场模型,8k_en: 8k 英文会场模型;16k_en:16k 英文会场模型。当前仅支持16K。
|
||||
* @param string $Data 语音数据,要base64编码。
|
||||
* @param integer $DataLen 数据长度。
|
||||
* @param string $VoiceId 声音id,标识一句话。
|
||||
* @param integer $IsEnd 是否是一句话的结束。
|
||||
* @param integer $VoiceFormat 声音编码的格式1:pcm,4:speex,6:silk,默认为1。
|
||||
* @param integer $OpenTranslate 是否需要翻译结果,1表示需要翻译,0是不需要。
|
||||
* @param string $SourceLanguage 如果需要翻译,表示源语言类型,可取值:zh,en。
|
||||
* @param string $TargetLanguage 如果需要翻译,表示目标语言类型,可取值:zh,en。
|
||||
* @param integer $Seq 表明当前语音分片的索引,从0开始
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("ProjectId",$param) and $param["ProjectId"] !== null) {
|
||||
$this->ProjectId = $param["ProjectId"];
|
||||
}
|
||||
|
||||
if (array_key_exists("SubServiceType",$param) and $param["SubServiceType"] !== null) {
|
||||
$this->SubServiceType = $param["SubServiceType"];
|
||||
}
|
||||
|
||||
if (array_key_exists("RecEngineModelType",$param) and $param["RecEngineModelType"] !== null) {
|
||||
$this->RecEngineModelType = $param["RecEngineModelType"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Data",$param) and $param["Data"] !== null) {
|
||||
$this->Data = $param["Data"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DataLen",$param) and $param["DataLen"] !== null) {
|
||||
$this->DataLen = $param["DataLen"];
|
||||
}
|
||||
|
||||
if (array_key_exists("VoiceId",$param) and $param["VoiceId"] !== null) {
|
||||
$this->VoiceId = $param["VoiceId"];
|
||||
}
|
||||
|
||||
if (array_key_exists("IsEnd",$param) and $param["IsEnd"] !== null) {
|
||||
$this->IsEnd = $param["IsEnd"];
|
||||
}
|
||||
|
||||
if (array_key_exists("VoiceFormat",$param) and $param["VoiceFormat"] !== null) {
|
||||
$this->VoiceFormat = $param["VoiceFormat"];
|
||||
}
|
||||
|
||||
if (array_key_exists("OpenTranslate",$param) and $param["OpenTranslate"] !== null) {
|
||||
$this->OpenTranslate = $param["OpenTranslate"];
|
||||
}
|
||||
|
||||
if (array_key_exists("SourceLanguage",$param) and $param["SourceLanguage"] !== null) {
|
||||
$this->SourceLanguage = $param["SourceLanguage"];
|
||||
}
|
||||
|
||||
if (array_key_exists("TargetLanguage",$param) and $param["TargetLanguage"] !== null) {
|
||||
$this->TargetLanguage = $param["TargetLanguage"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Seq",$param) and $param["Seq"] !== null) {
|
||||
$this->Seq = $param["Seq"];
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aai\V20180522\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* SimultaneousInterpreting返回参数结构体
|
||||
*
|
||||
* @method string getAsrText() 获取语音识别的结果
|
||||
* @method void setAsrText(string $AsrText) 设置语音识别的结果
|
||||
* @method string getNmtText() 获取机器翻译的结果
|
||||
* @method void setNmtText(string $NmtText) 设置机器翻译的结果
|
||||
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
*/
|
||||
class SimultaneousInterpretingResponse extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var string 语音识别的结果
|
||||
*/
|
||||
public $AsrText;
|
||||
|
||||
/**
|
||||
* @var string 机器翻译的结果
|
||||
*/
|
||||
public $NmtText;
|
||||
|
||||
/**
|
||||
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
*/
|
||||
public $RequestId;
|
||||
|
||||
/**
|
||||
* @param string $AsrText 语音识别的结果
|
||||
* @param string $NmtText 机器翻译的结果
|
||||
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("AsrText",$param) and $param["AsrText"] !== null) {
|
||||
$this->AsrText = $param["AsrText"];
|
||||
}
|
||||
|
||||
if (array_key_exists("NmtText",$param) and $param["NmtText"] !== null) {
|
||||
$this->NmtText = $param["NmtText"];
|
||||
}
|
||||
|
||||
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
|
||||
$this->RequestId = $param["RequestId"];
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,169 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aai\V20180522\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* TextToVoice请求参数结构体
|
||||
*
|
||||
* @method string getText() 获取合成语音的源文本,按UTF-8编码统一计算。
|
||||
中文最大支持100个汉字(全角标点符号算一个汉字);英文最大支持400个字母(半角标点符号算一个字母)。包含空格等字符时需要url encode再传输。
|
||||
* @method void setText(string $Text) 设置合成语音的源文本,按UTF-8编码统一计算。
|
||||
中文最大支持100个汉字(全角标点符号算一个汉字);英文最大支持400个字母(半角标点符号算一个字母)。包含空格等字符时需要url encode再传输。
|
||||
* @method string getSessionId() 获取一次请求对应一个SessionId,会原样返回,建议传入类似于uuid的字符串防止重复。
|
||||
* @method void setSessionId(string $SessionId) 设置一次请求对应一个SessionId,会原样返回,建议传入类似于uuid的字符串防止重复。
|
||||
* @method integer getModelType() 获取模型类型,1-默认模型。
|
||||
* @method void setModelType(integer $ModelType) 设置模型类型,1-默认模型。
|
||||
* @method float getVolume() 获取音量大小,范围:[0,10],分别对应11个等级的音量,默认为0,代表正常音量。没有静音选项。
|
||||
输入除以上整数之外的其他参数不生效,按默认值处理。
|
||||
* @method void setVolume(float $Volume) 设置音量大小,范围:[0,10],分别对应11个等级的音量,默认为0,代表正常音量。没有静音选项。
|
||||
输入除以上整数之外的其他参数不生效,按默认值处理。
|
||||
* @method float getSpeed() 获取语速,范围:[-2,2],分别对应不同语速:<li>-2代表0.6倍</li><li>-1代表0.8倍</li><li>0代表1.0倍(默认)</li><li>1代表1.2倍</li><li>2代表1.5倍</li>输入除以上整数之外的其他参数不生效,按默认值处理。
|
||||
* @method void setSpeed(float $Speed) 设置语速,范围:[-2,2],分别对应不同语速:<li>-2代表0.6倍</li><li>-1代表0.8倍</li><li>0代表1.0倍(默认)</li><li>1代表1.2倍</li><li>2代表1.5倍</li>输入除以上整数之外的其他参数不生效,按默认值处理。
|
||||
* @method integer getProjectId() 获取项目id,用户自定义,默认为0。
|
||||
* @method void setProjectId(integer $ProjectId) 设置项目id,用户自定义,默认为0。
|
||||
* @method integer getVoiceType() 获取音色<li>0-亲和女声(默认)</li><li>1-亲和男声</li><li>2-成熟男声</li><li>3-活力男声</li><li>4-温暖女声</li><li>5-情感女声</li><li>6-情感男声</li>
|
||||
* @method void setVoiceType(integer $VoiceType) 设置音色<li>0-亲和女声(默认)</li><li>1-亲和男声</li><li>2-成熟男声</li><li>3-活力男声</li><li>4-温暖女声</li><li>5-情感女声</li><li>6-情感男声</li>
|
||||
* @method integer getPrimaryLanguage() 获取主语言类型:<li>1-中文(默认)</li><li>2-英文</li>
|
||||
* @method void setPrimaryLanguage(integer $PrimaryLanguage) 设置主语言类型:<li>1-中文(默认)</li><li>2-英文</li>
|
||||
* @method integer getSampleRate() 获取音频采样率:<li>16000:16k(默认)</li><li>8000:8k</li>
|
||||
* @method void setSampleRate(integer $SampleRate) 设置音频采样率:<li>16000:16k(默认)</li><li>8000:8k</li>
|
||||
* @method string getCodec() 获取返回音频格式,可取值:wav(默认),mp3
|
||||
* @method void setCodec(string $Codec) 设置返回音频格式,可取值:wav(默认),mp3
|
||||
*/
|
||||
class TextToVoiceRequest extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var string 合成语音的源文本,按UTF-8编码统一计算。
|
||||
中文最大支持100个汉字(全角标点符号算一个汉字);英文最大支持400个字母(半角标点符号算一个字母)。包含空格等字符时需要url encode再传输。
|
||||
*/
|
||||
public $Text;
|
||||
|
||||
/**
|
||||
* @var string 一次请求对应一个SessionId,会原样返回,建议传入类似于uuid的字符串防止重复。
|
||||
*/
|
||||
public $SessionId;
|
||||
|
||||
/**
|
||||
* @var integer 模型类型,1-默认模型。
|
||||
*/
|
||||
public $ModelType;
|
||||
|
||||
/**
|
||||
* @var float 音量大小,范围:[0,10],分别对应11个等级的音量,默认为0,代表正常音量。没有静音选项。
|
||||
输入除以上整数之外的其他参数不生效,按默认值处理。
|
||||
*/
|
||||
public $Volume;
|
||||
|
||||
/**
|
||||
* @var float 语速,范围:[-2,2],分别对应不同语速:<li>-2代表0.6倍</li><li>-1代表0.8倍</li><li>0代表1.0倍(默认)</li><li>1代表1.2倍</li><li>2代表1.5倍</li>输入除以上整数之外的其他参数不生效,按默认值处理。
|
||||
*/
|
||||
public $Speed;
|
||||
|
||||
/**
|
||||
* @var integer 项目id,用户自定义,默认为0。
|
||||
*/
|
||||
public $ProjectId;
|
||||
|
||||
/**
|
||||
* @var integer 音色<li>0-亲和女声(默认)</li><li>1-亲和男声</li><li>2-成熟男声</li><li>3-活力男声</li><li>4-温暖女声</li><li>5-情感女声</li><li>6-情感男声</li>
|
||||
*/
|
||||
public $VoiceType;
|
||||
|
||||
/**
|
||||
* @var integer 主语言类型:<li>1-中文(默认)</li><li>2-英文</li>
|
||||
*/
|
||||
public $PrimaryLanguage;
|
||||
|
||||
/**
|
||||
* @var integer 音频采样率:<li>16000:16k(默认)</li><li>8000:8k</li>
|
||||
*/
|
||||
public $SampleRate;
|
||||
|
||||
/**
|
||||
* @var string 返回音频格式,可取值:wav(默认),mp3
|
||||
*/
|
||||
public $Codec;
|
||||
|
||||
/**
|
||||
* @param string $Text 合成语音的源文本,按UTF-8编码统一计算。
|
||||
中文最大支持100个汉字(全角标点符号算一个汉字);英文最大支持400个字母(半角标点符号算一个字母)。包含空格等字符时需要url encode再传输。
|
||||
* @param string $SessionId 一次请求对应一个SessionId,会原样返回,建议传入类似于uuid的字符串防止重复。
|
||||
* @param integer $ModelType 模型类型,1-默认模型。
|
||||
* @param float $Volume 音量大小,范围:[0,10],分别对应11个等级的音量,默认为0,代表正常音量。没有静音选项。
|
||||
输入除以上整数之外的其他参数不生效,按默认值处理。
|
||||
* @param float $Speed 语速,范围:[-2,2],分别对应不同语速:<li>-2代表0.6倍</li><li>-1代表0.8倍</li><li>0代表1.0倍(默认)</li><li>1代表1.2倍</li><li>2代表1.5倍</li>输入除以上整数之外的其他参数不生效,按默认值处理。
|
||||
* @param integer $ProjectId 项目id,用户自定义,默认为0。
|
||||
* @param integer $VoiceType 音色<li>0-亲和女声(默认)</li><li>1-亲和男声</li><li>2-成熟男声</li><li>3-活力男声</li><li>4-温暖女声</li><li>5-情感女声</li><li>6-情感男声</li>
|
||||
* @param integer $PrimaryLanguage 主语言类型:<li>1-中文(默认)</li><li>2-英文</li>
|
||||
* @param integer $SampleRate 音频采样率:<li>16000:16k(默认)</li><li>8000:8k</li>
|
||||
* @param string $Codec 返回音频格式,可取值:wav(默认),mp3
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("Text",$param) and $param["Text"] !== null) {
|
||||
$this->Text = $param["Text"];
|
||||
}
|
||||
|
||||
if (array_key_exists("SessionId",$param) and $param["SessionId"] !== null) {
|
||||
$this->SessionId = $param["SessionId"];
|
||||
}
|
||||
|
||||
if (array_key_exists("ModelType",$param) and $param["ModelType"] !== null) {
|
||||
$this->ModelType = $param["ModelType"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Volume",$param) and $param["Volume"] !== null) {
|
||||
$this->Volume = $param["Volume"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Speed",$param) and $param["Speed"] !== null) {
|
||||
$this->Speed = $param["Speed"];
|
||||
}
|
||||
|
||||
if (array_key_exists("ProjectId",$param) and $param["ProjectId"] !== null) {
|
||||
$this->ProjectId = $param["ProjectId"];
|
||||
}
|
||||
|
||||
if (array_key_exists("VoiceType",$param) and $param["VoiceType"] !== null) {
|
||||
$this->VoiceType = $param["VoiceType"];
|
||||
}
|
||||
|
||||
if (array_key_exists("PrimaryLanguage",$param) and $param["PrimaryLanguage"] !== null) {
|
||||
$this->PrimaryLanguage = $param["PrimaryLanguage"];
|
||||
}
|
||||
|
||||
if (array_key_exists("SampleRate",$param) and $param["SampleRate"] !== null) {
|
||||
$this->SampleRate = $param["SampleRate"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Codec",$param) and $param["Codec"] !== null) {
|
||||
$this->Codec = $param["Codec"];
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aai\V20180522\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* TextToVoice返回参数结构体
|
||||
*
|
||||
* @method string getAudio() 获取base64编码的wav/mp3音频数据
|
||||
* @method void setAudio(string $Audio) 设置base64编码的wav/mp3音频数据
|
||||
* @method string getSessionId() 获取一次请求对应一个SessionId
|
||||
* @method void setSessionId(string $SessionId) 设置一次请求对应一个SessionId
|
||||
* @method string getRequestId() 获取唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
* @method void setRequestId(string $RequestId) 设置唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
*/
|
||||
class TextToVoiceResponse extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var string base64编码的wav/mp3音频数据
|
||||
*/
|
||||
public $Audio;
|
||||
|
||||
/**
|
||||
* @var string 一次请求对应一个SessionId
|
||||
*/
|
||||
public $SessionId;
|
||||
|
||||
/**
|
||||
* @var string 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
*/
|
||||
public $RequestId;
|
||||
|
||||
/**
|
||||
* @param string $Audio base64编码的wav/mp3音频数据
|
||||
* @param string $SessionId 一次请求对应一个SessionId
|
||||
* @param string $RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("Audio",$param) and $param["Audio"] !== null) {
|
||||
$this->Audio = $param["Audio"];
|
||||
}
|
||||
|
||||
if (array_key_exists("SessionId",$param) and $param["SessionId"] !== null) {
|
||||
$this->SessionId = $param["SessionId"];
|
||||
}
|
||||
|
||||
if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
|
||||
$this->RequestId = $param["RequestId"];
|
||||
}
|
||||
}
|
||||
}
|
71
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/AcaClient.php
vendored
Normal file
71
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/AcaClient.php
vendored
Normal file
@ -0,0 +1,71 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
namespace TencentCloud\Aca\V20210323;
|
||||
|
||||
use TencentCloud\Common\AbstractClient;
|
||||
use TencentCloud\Common\Profile\ClientProfile;
|
||||
use TencentCloud\Common\Credential;
|
||||
use TencentCloud\Aca\V20210323\Models as Models;
|
||||
|
||||
/**
|
||||
* @method Models\GetDrugIndicationsResponse GetDrugIndications(Models\GetDrugIndicationsRequest $req) 药品适应症接口
|
||||
* @method Models\LoginHisToolResponse LoginHisTool(Models\LoginHisToolRequest $req) 登录获取token
|
||||
* @method Models\LoginOutHisToolResponse LoginOutHisTool(Models\LoginOutHisToolRequest $req) 登出
|
||||
* @method Models\SmartDrugInfoResponse SmartDrugInfo(Models\SmartDrugInfoRequest $req) 智能用药接口
|
||||
* @method Models\SmartPredictResponse SmartPredict(Models\SmartPredictRequest $req) 辅诊智能预测接口
|
||||
* @method Models\SyncDepartmentResponse SyncDepartment(Models\SyncDepartmentRequest $req) 用于院方科室管理,获取科室列表和状态、新增或修改科室信息、删除科室。
|
||||
* @method Models\SyncStandardDictResponse SyncStandardDict(Models\SyncStandardDictRequest $req) 同步标准字典,如给药频次、给药途径、科室、诊断等
|
||||
* @method Models\UploadDrugsResponse UploadDrugs(Models\UploadDrugsRequest $req) 药品同步,一次同步数据不要超过500个
|
||||
*/
|
||||
|
||||
class AcaClient extends AbstractClient
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $endpoint = "aca.tencentcloudapi.com";
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $service = "aca";
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $version = "2021-03-23";
|
||||
|
||||
/**
|
||||
* @param Credential $credential
|
||||
* @param string $region
|
||||
* @param ClientProfile|null $profile
|
||||
* @throws TencentCloudSDKException
|
||||
*/
|
||||
function __construct($credential, $region, $profile=null)
|
||||
{
|
||||
parent::__construct($this->endpoint, $this->version, $credential, $region, $profile);
|
||||
}
|
||||
|
||||
public function returnResponse($action, $response)
|
||||
{
|
||||
$respClass = "TencentCloud"."\\".ucfirst("aca")."\\"."V20210323\\Models"."\\".ucfirst($action)."Response";
|
||||
$obj = new $respClass();
|
||||
$obj->deserialize($response);
|
||||
return $obj;
|
||||
}
|
||||
}
|
77
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/Abnormals.php
vendored
Normal file
77
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/Abnormals.php
vendored
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aca\V20210323\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* 异常提醒
|
||||
*
|
||||
* @method string getType() 获取类型
|
||||
* @method void setType(string $Type) 设置类型
|
||||
* @method string getTitle() 获取标题
|
||||
* @method void setTitle(string $Title) 设置标题
|
||||
* @method string getAbnormalReason() 获取异常原因 PatientInfo 病人信息缺失;OrderInfo 医嘱信息缺失; PrescriptionError 处方异常提醒
|
||||
* @method void setAbnormalReason(string $AbnormalReason) 设置异常原因 PatientInfo 病人信息缺失;OrderInfo 医嘱信息缺失; PrescriptionError 处方异常提醒
|
||||
*/
|
||||
class Abnormals extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var string 类型
|
||||
*/
|
||||
public $Type;
|
||||
|
||||
/**
|
||||
* @var string 标题
|
||||
*/
|
||||
public $Title;
|
||||
|
||||
/**
|
||||
* @var string 异常原因 PatientInfo 病人信息缺失;OrderInfo 医嘱信息缺失; PrescriptionError 处方异常提醒
|
||||
*/
|
||||
public $AbnormalReason;
|
||||
|
||||
/**
|
||||
* @param string $Type 类型
|
||||
* @param string $Title 标题
|
||||
* @param string $AbnormalReason 异常原因 PatientInfo 病人信息缺失;OrderInfo 医嘱信息缺失; PrescriptionError 处方异常提醒
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("Type",$param) and $param["Type"] !== null) {
|
||||
$this->Type = $param["Type"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Title",$param) and $param["Title"] !== null) {
|
||||
$this->Title = $param["Title"];
|
||||
}
|
||||
|
||||
if (array_key_exists("AbnormalReason",$param) and $param["AbnormalReason"] !== null) {
|
||||
$this->AbnormalReason = $param["AbnormalReason"];
|
||||
}
|
||||
}
|
||||
}
|
65
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/CommonHeader.php
vendored
Normal file
65
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/CommonHeader.php
vendored
Normal file
@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aca\V20210323\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* 业务接口请求头
|
||||
*
|
||||
* @method string getHospitalId() 获取机构ID
|
||||
* @method void setHospitalId(string $HospitalId) 设置机构ID
|
||||
* @method string getToken() 获取token
|
||||
* @method void setToken(string $Token) 设置token
|
||||
*/
|
||||
class CommonHeader extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var string 机构ID
|
||||
*/
|
||||
public $HospitalId;
|
||||
|
||||
/**
|
||||
* @var string token
|
||||
*/
|
||||
public $Token;
|
||||
|
||||
/**
|
||||
* @param string $HospitalId 机构ID
|
||||
* @param string $Token token
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("HospitalId",$param) and $param["HospitalId"] !== null) {
|
||||
$this->HospitalId = $param["HospitalId"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Token",$param) and $param["Token"] !== null) {
|
||||
$this->Token = $param["Token"];
|
||||
}
|
||||
}
|
||||
}
|
65
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/CriticalInfo.php
vendored
Normal file
65
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/CriticalInfo.php
vendored
Normal file
@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aca\V20210323\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* 危疾重症
|
||||
*
|
||||
* @method integer getType() 获取危急重症类型 0:文字描述类 1:数值检查类
|
||||
* @method void setType(integer $Type) 设置危急重症类型 0:文字描述类 1:数值检查类
|
||||
* @method string getTips() 获取提示
|
||||
* @method void setTips(string $Tips) 设置提示
|
||||
*/
|
||||
class CriticalInfo extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var integer 危急重症类型 0:文字描述类 1:数值检查类
|
||||
*/
|
||||
public $Type;
|
||||
|
||||
/**
|
||||
* @var string 提示
|
||||
*/
|
||||
public $Tips;
|
||||
|
||||
/**
|
||||
* @param integer $Type 危急重症类型 0:文字描述类 1:数值检查类
|
||||
* @param string $Tips 提示
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("Type",$param) and $param["Type"] !== null) {
|
||||
$this->Type = $param["Type"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Tips",$param) and $param["Tips"] !== null) {
|
||||
$this->Tips = $param["Tips"];
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aca\V20210323\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* 当前诊断
|
||||
*
|
||||
* @method string getDiagnoseDisease() 获取诊断疾病
|
||||
* @method void setDiagnoseDisease(string $DiagnoseDisease) 设置诊断疾病
|
||||
* @method string getDiseaseGuideInfo() 获取疾病指南信息
|
||||
* @method void setDiseaseGuideInfo(string $DiseaseGuideInfo) 设置疾病指南信息
|
||||
* @method string getStandardName() 获取标准名称
|
||||
* @method void setStandardName(string $StandardName) 设置标准名称
|
||||
*/
|
||||
class CurrentDiagnosis extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var string 诊断疾病
|
||||
*/
|
||||
public $DiagnoseDisease;
|
||||
|
||||
/**
|
||||
* @var string 疾病指南信息
|
||||
*/
|
||||
public $DiseaseGuideInfo;
|
||||
|
||||
/**
|
||||
* @var string 标准名称
|
||||
*/
|
||||
public $StandardName;
|
||||
|
||||
/**
|
||||
* @param string $DiagnoseDisease 诊断疾病
|
||||
* @param string $DiseaseGuideInfo 疾病指南信息
|
||||
* @param string $StandardName 标准名称
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("DiagnoseDisease",$param) and $param["DiagnoseDisease"] !== null) {
|
||||
$this->DiagnoseDisease = $param["DiagnoseDisease"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DiseaseGuideInfo",$param) and $param["DiseaseGuideInfo"] !== null) {
|
||||
$this->DiseaseGuideInfo = $param["DiseaseGuideInfo"];
|
||||
}
|
||||
|
||||
if (array_key_exists("StandardName",$param) and $param["StandardName"] !== null) {
|
||||
$this->StandardName = $param["StandardName"];
|
||||
}
|
||||
}
|
||||
}
|
101
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/Department.php
vendored
Normal file
101
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/Department.php
vendored
Normal file
@ -0,0 +1,101 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aca\V20210323\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* 科室信息
|
||||
*
|
||||
* @method string getId() 获取科室ID
|
||||
* @method void setId(string $Id) 设置科室ID
|
||||
* @method string getName() 获取科室名称
|
||||
* @method void setName(string $Name) 设置科室名称
|
||||
* @method integer getScope() 获取科室类型 0:门诊 1:住院 2:门诊+住院
|
||||
* @method void setScope(integer $Scope) 设置科室类型 0:门诊 1:住院 2:门诊+住院
|
||||
* @method boolean getOutpatientOn() 获取门诊区开关 true:此科室对应的门诊区开启智能审方功能, false:此科室对应的门诊区关闭智能审方功能; 仅对scope为0/2的科室生效
|
||||
* @method void setOutpatientOn(boolean $OutpatientOn) 设置门诊区开关 true:此科室对应的门诊区开启智能审方功能, false:此科室对应的门诊区关闭智能审方功能; 仅对scope为0/2的科室生效
|
||||
* @method boolean getInHospitalOn() 获取住院区开关 true:此科室对应的住院区开启智能审方功能, false:此科室对应的住院区关闭智能审方功能; 仅对scope为1/2的科室生效
|
||||
* @method void setInHospitalOn(boolean $InHospitalOn) 设置住院区开关 true:此科室对应的住院区开启智能审方功能, false:此科室对应的住院区关闭智能审方功能; 仅对scope为1/2的科室生效
|
||||
*/
|
||||
class Department extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var string 科室ID
|
||||
*/
|
||||
public $Id;
|
||||
|
||||
/**
|
||||
* @var string 科室名称
|
||||
*/
|
||||
public $Name;
|
||||
|
||||
/**
|
||||
* @var integer 科室类型 0:门诊 1:住院 2:门诊+住院
|
||||
*/
|
||||
public $Scope;
|
||||
|
||||
/**
|
||||
* @var boolean 门诊区开关 true:此科室对应的门诊区开启智能审方功能, false:此科室对应的门诊区关闭智能审方功能; 仅对scope为0/2的科室生效
|
||||
*/
|
||||
public $OutpatientOn;
|
||||
|
||||
/**
|
||||
* @var boolean 住院区开关 true:此科室对应的住院区开启智能审方功能, false:此科室对应的住院区关闭智能审方功能; 仅对scope为1/2的科室生效
|
||||
*/
|
||||
public $InHospitalOn;
|
||||
|
||||
/**
|
||||
* @param string $Id 科室ID
|
||||
* @param string $Name 科室名称
|
||||
* @param integer $Scope 科室类型 0:门诊 1:住院 2:门诊+住院
|
||||
* @param boolean $OutpatientOn 门诊区开关 true:此科室对应的门诊区开启智能审方功能, false:此科室对应的门诊区关闭智能审方功能; 仅对scope为0/2的科室生效
|
||||
* @param boolean $InHospitalOn 住院区开关 true:此科室对应的住院区开启智能审方功能, false:此科室对应的住院区关闭智能审方功能; 仅对scope为1/2的科室生效
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("Id",$param) and $param["Id"] !== null) {
|
||||
$this->Id = $param["Id"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Name",$param) and $param["Name"] !== null) {
|
||||
$this->Name = $param["Name"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Scope",$param) and $param["Scope"] !== null) {
|
||||
$this->Scope = $param["Scope"];
|
||||
}
|
||||
|
||||
if (array_key_exists("OutpatientOn",$param) and $param["OutpatientOn"] !== null) {
|
||||
$this->OutpatientOn = $param["OutpatientOn"];
|
||||
}
|
||||
|
||||
if (array_key_exists("InHospitalOn",$param) and $param["InHospitalOn"] !== null) {
|
||||
$this->InHospitalOn = $param["InHospitalOn"];
|
||||
}
|
||||
}
|
||||
}
|
219
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/DiagnosisInfo.php
vendored
Normal file
219
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/DiagnosisInfo.php
vendored
Normal file
@ -0,0 +1,219 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aca\V20210323\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* 诊断、辅助内容
|
||||
*
|
||||
* @method integer getIntentType() 获取默认0,0:初诊-常规诊疗 1:复诊 2:检验检查/取药/咨询/疫苗 3:信息缺失 4:信息错误
|
||||
* @method void setIntentType(integer $IntentType) 设置默认0,0:初诊-常规诊疗 1:复诊 2:检验检查/取药/咨询/疫苗 3:信息缺失 4:信息错误
|
||||
* @method string getRiskInfo() 获取诊断风险
|
||||
* @method void setRiskInfo(string $RiskInfo) 设置诊断风险
|
||||
* @method array getSuspectedDiagnosis() 获取疑似诊断列表
|
||||
* @method void setSuspectedDiagnosis(array $SuspectedDiagnosis) 设置疑似诊断列表
|
||||
* @method ReferralInfo getReferralInfo() 获取转诊提醒
|
||||
* @method void setReferralInfo(ReferralInfo $ReferralInfo) 设置转诊提醒
|
||||
* @method array getCriticalInfo() 获取危急重症
|
||||
* @method void setCriticalInfo(array $CriticalInfo) 设置危急重症
|
||||
* @method VitalSignsInfo getVitalSignsInfo() 获取生命体征风险
|
||||
* @method void setVitalSignsInfo(VitalSignsInfo $VitalSignsInfo) 设置生命体征风险
|
||||
* @method array getDifferDiagnosis() 获取鉴别诊断
|
||||
* @method void setDifferDiagnosis(array $DifferDiagnosis) 设置鉴别诊断
|
||||
* @method RecordQuality getRecordQuality() 获取病历质控
|
||||
* @method void setRecordQuality(RecordQuality $RecordQuality) 设置病历质控
|
||||
* @method array getCurrentDiagnosis() 获取当前诊断
|
||||
* @method void setCurrentDiagnosis(array $CurrentDiagnosis) 设置当前诊断
|
||||
* @method array getTreatmentGuide() 获取治疗方案
|
||||
* @method void setTreatmentGuide(array $TreatmentGuide) 设置治疗方案
|
||||
* @method EmrQuality getEmrQuality() 获取病历质控
|
||||
* @method void setEmrQuality(EmrQuality $EmrQuality) 设置病历质控
|
||||
* @method array getHealthPrescriptions() 获取健康处方
|
||||
* @method void setHealthPrescriptions(array $HealthPrescriptions) 设置健康处方
|
||||
*/
|
||||
class DiagnosisInfo extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var integer 默认0,0:初诊-常规诊疗 1:复诊 2:检验检查/取药/咨询/疫苗 3:信息缺失 4:信息错误
|
||||
*/
|
||||
public $IntentType;
|
||||
|
||||
/**
|
||||
* @var string 诊断风险
|
||||
*/
|
||||
public $RiskInfo;
|
||||
|
||||
/**
|
||||
* @var array 疑似诊断列表
|
||||
*/
|
||||
public $SuspectedDiagnosis;
|
||||
|
||||
/**
|
||||
* @var ReferralInfo 转诊提醒
|
||||
*/
|
||||
public $ReferralInfo;
|
||||
|
||||
/**
|
||||
* @var array 危急重症
|
||||
*/
|
||||
public $CriticalInfo;
|
||||
|
||||
/**
|
||||
* @var VitalSignsInfo 生命体征风险
|
||||
*/
|
||||
public $VitalSignsInfo;
|
||||
|
||||
/**
|
||||
* @var array 鉴别诊断
|
||||
*/
|
||||
public $DifferDiagnosis;
|
||||
|
||||
/**
|
||||
* @var RecordQuality 病历质控
|
||||
*/
|
||||
public $RecordQuality;
|
||||
|
||||
/**
|
||||
* @var array 当前诊断
|
||||
*/
|
||||
public $CurrentDiagnosis;
|
||||
|
||||
/**
|
||||
* @var array 治疗方案
|
||||
*/
|
||||
public $TreatmentGuide;
|
||||
|
||||
/**
|
||||
* @var EmrQuality 病历质控
|
||||
*/
|
||||
public $EmrQuality;
|
||||
|
||||
/**
|
||||
* @var array 健康处方
|
||||
*/
|
||||
public $HealthPrescriptions;
|
||||
|
||||
/**
|
||||
* @param integer $IntentType 默认0,0:初诊-常规诊疗 1:复诊 2:检验检查/取药/咨询/疫苗 3:信息缺失 4:信息错误
|
||||
* @param string $RiskInfo 诊断风险
|
||||
* @param array $SuspectedDiagnosis 疑似诊断列表
|
||||
* @param ReferralInfo $ReferralInfo 转诊提醒
|
||||
* @param array $CriticalInfo 危急重症
|
||||
* @param VitalSignsInfo $VitalSignsInfo 生命体征风险
|
||||
* @param array $DifferDiagnosis 鉴别诊断
|
||||
* @param RecordQuality $RecordQuality 病历质控
|
||||
* @param array $CurrentDiagnosis 当前诊断
|
||||
* @param array $TreatmentGuide 治疗方案
|
||||
* @param EmrQuality $EmrQuality 病历质控
|
||||
* @param array $HealthPrescriptions 健康处方
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("IntentType",$param) and $param["IntentType"] !== null) {
|
||||
$this->IntentType = $param["IntentType"];
|
||||
}
|
||||
|
||||
if (array_key_exists("RiskInfo",$param) and $param["RiskInfo"] !== null) {
|
||||
$this->RiskInfo = $param["RiskInfo"];
|
||||
}
|
||||
|
||||
if (array_key_exists("SuspectedDiagnosis",$param) and $param["SuspectedDiagnosis"] !== null) {
|
||||
$this->SuspectedDiagnosis = [];
|
||||
foreach ($param["SuspectedDiagnosis"] as $key => $value){
|
||||
$obj = new SuspectedDiagnosis();
|
||||
$obj->deserialize($value);
|
||||
array_push($this->SuspectedDiagnosis, $obj);
|
||||
}
|
||||
}
|
||||
|
||||
if (array_key_exists("ReferralInfo",$param) and $param["ReferralInfo"] !== null) {
|
||||
$this->ReferralInfo = new ReferralInfo();
|
||||
$this->ReferralInfo->deserialize($param["ReferralInfo"]);
|
||||
}
|
||||
|
||||
if (array_key_exists("CriticalInfo",$param) and $param["CriticalInfo"] !== null) {
|
||||
$this->CriticalInfo = [];
|
||||
foreach ($param["CriticalInfo"] as $key => $value){
|
||||
$obj = new CriticalInfo();
|
||||
$obj->deserialize($value);
|
||||
array_push($this->CriticalInfo, $obj);
|
||||
}
|
||||
}
|
||||
|
||||
if (array_key_exists("VitalSignsInfo",$param) and $param["VitalSignsInfo"] !== null) {
|
||||
$this->VitalSignsInfo = new VitalSignsInfo();
|
||||
$this->VitalSignsInfo->deserialize($param["VitalSignsInfo"]);
|
||||
}
|
||||
|
||||
if (array_key_exists("DifferDiagnosis",$param) and $param["DifferDiagnosis"] !== null) {
|
||||
$this->DifferDiagnosis = [];
|
||||
foreach ($param["DifferDiagnosis"] as $key => $value){
|
||||
$obj = new DifferDiagnosis();
|
||||
$obj->deserialize($value);
|
||||
array_push($this->DifferDiagnosis, $obj);
|
||||
}
|
||||
}
|
||||
|
||||
if (array_key_exists("RecordQuality",$param) and $param["RecordQuality"] !== null) {
|
||||
$this->RecordQuality = new RecordQuality();
|
||||
$this->RecordQuality->deserialize($param["RecordQuality"]);
|
||||
}
|
||||
|
||||
if (array_key_exists("CurrentDiagnosis",$param) and $param["CurrentDiagnosis"] !== null) {
|
||||
$this->CurrentDiagnosis = [];
|
||||
foreach ($param["CurrentDiagnosis"] as $key => $value){
|
||||
$obj = new CurrentDiagnosis();
|
||||
$obj->deserialize($value);
|
||||
array_push($this->CurrentDiagnosis, $obj);
|
||||
}
|
||||
}
|
||||
|
||||
if (array_key_exists("TreatmentGuide",$param) and $param["TreatmentGuide"] !== null) {
|
||||
$this->TreatmentGuide = [];
|
||||
foreach ($param["TreatmentGuide"] as $key => $value){
|
||||
$obj = new TreatmentGuide();
|
||||
$obj->deserialize($value);
|
||||
array_push($this->TreatmentGuide, $obj);
|
||||
}
|
||||
}
|
||||
|
||||
if (array_key_exists("EmrQuality",$param) and $param["EmrQuality"] !== null) {
|
||||
$this->EmrQuality = new EmrQuality();
|
||||
$this->EmrQuality->deserialize($param["EmrQuality"]);
|
||||
}
|
||||
|
||||
if (array_key_exists("HealthPrescriptions",$param) and $param["HealthPrescriptions"] !== null) {
|
||||
$this->HealthPrescriptions = [];
|
||||
foreach ($param["HealthPrescriptions"] as $key => $value){
|
||||
$obj = new HealthPrescriptions();
|
||||
$obj->deserialize($value);
|
||||
array_push($this->HealthPrescriptions, $obj);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
197
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/Dict.php
vendored
Normal file
197
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/Dict.php
vendored
Normal file
@ -0,0 +1,197 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aca\V20210323\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* 字典信息
|
||||
*
|
||||
* @method string getFreqCode() 获取给药频次编码
|
||||
* @method void setFreqCode(string $FreqCode) 设置给药频次编码
|
||||
* @method string getFreqName() 获取给药频次名称
|
||||
* @method void setFreqName(string $FreqName) 设置给药频次名称
|
||||
* @method integer getDisable() 获取是否禁用 0-启用 1-禁用
|
||||
* @method void setDisable(integer $Disable) 设置是否禁用 0-启用 1-禁用
|
||||
* @method string getUsageCode() 获取给药途径编码
|
||||
* @method void setUsageCode(string $UsageCode) 设置给药途径编码
|
||||
* @method string getUsageName() 获取给药途径名称
|
||||
* @method void setUsageName(string $UsageName) 设置给药途径名称
|
||||
* @method string getDeptId() 获取科室ID
|
||||
* @method void setDeptId(string $DeptId) 设置科室ID
|
||||
* @method string getDeptName() 获取科室名称
|
||||
* @method void setDeptName(string $DeptName) 设置科室名称
|
||||
* @method integer getScope() 获取科室区域类型 0:门诊 1:住院 2:门诊+住院
|
||||
* @method void setScope(integer $Scope) 设置科室区域类型 0:门诊 1:住院 2:门诊+住院
|
||||
* @method boolean getOutpatientOn() 获取门诊开关
|
||||
* @method void setOutpatientOn(boolean $OutpatientOn) 设置门诊开关
|
||||
* @method boolean getInHospitalOn() 获取住院
|
||||
* @method void setInHospitalOn(boolean $InHospitalOn) 设置住院
|
||||
* @method string getDiagCode() 获取诊断编码
|
||||
* @method void setDiagCode(string $DiagCode) 设置诊断编码
|
||||
* @method string getDiagName() 获取诊断名称
|
||||
* @method void setDiagName(string $DiagName) 设置诊断名称
|
||||
* @method string getIcdCode() 获取ICD代码
|
||||
* @method void setIcdCode(string $IcdCode) 设置ICD代码
|
||||
*/
|
||||
class Dict extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var string 给药频次编码
|
||||
*/
|
||||
public $FreqCode;
|
||||
|
||||
/**
|
||||
* @var string 给药频次名称
|
||||
*/
|
||||
public $FreqName;
|
||||
|
||||
/**
|
||||
* @var integer 是否禁用 0-启用 1-禁用
|
||||
*/
|
||||
public $Disable;
|
||||
|
||||
/**
|
||||
* @var string 给药途径编码
|
||||
*/
|
||||
public $UsageCode;
|
||||
|
||||
/**
|
||||
* @var string 给药途径名称
|
||||
*/
|
||||
public $UsageName;
|
||||
|
||||
/**
|
||||
* @var string 科室ID
|
||||
*/
|
||||
public $DeptId;
|
||||
|
||||
/**
|
||||
* @var string 科室名称
|
||||
*/
|
||||
public $DeptName;
|
||||
|
||||
/**
|
||||
* @var integer 科室区域类型 0:门诊 1:住院 2:门诊+住院
|
||||
*/
|
||||
public $Scope;
|
||||
|
||||
/**
|
||||
* @var boolean 门诊开关
|
||||
*/
|
||||
public $OutpatientOn;
|
||||
|
||||
/**
|
||||
* @var boolean 住院
|
||||
*/
|
||||
public $InHospitalOn;
|
||||
|
||||
/**
|
||||
* @var string 诊断编码
|
||||
*/
|
||||
public $DiagCode;
|
||||
|
||||
/**
|
||||
* @var string 诊断名称
|
||||
*/
|
||||
public $DiagName;
|
||||
|
||||
/**
|
||||
* @var string ICD代码
|
||||
*/
|
||||
public $IcdCode;
|
||||
|
||||
/**
|
||||
* @param string $FreqCode 给药频次编码
|
||||
* @param string $FreqName 给药频次名称
|
||||
* @param integer $Disable 是否禁用 0-启用 1-禁用
|
||||
* @param string $UsageCode 给药途径编码
|
||||
* @param string $UsageName 给药途径名称
|
||||
* @param string $DeptId 科室ID
|
||||
* @param string $DeptName 科室名称
|
||||
* @param integer $Scope 科室区域类型 0:门诊 1:住院 2:门诊+住院
|
||||
* @param boolean $OutpatientOn 门诊开关
|
||||
* @param boolean $InHospitalOn 住院
|
||||
* @param string $DiagCode 诊断编码
|
||||
* @param string $DiagName 诊断名称
|
||||
* @param string $IcdCode ICD代码
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("FreqCode",$param) and $param["FreqCode"] !== null) {
|
||||
$this->FreqCode = $param["FreqCode"];
|
||||
}
|
||||
|
||||
if (array_key_exists("FreqName",$param) and $param["FreqName"] !== null) {
|
||||
$this->FreqName = $param["FreqName"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Disable",$param) and $param["Disable"] !== null) {
|
||||
$this->Disable = $param["Disable"];
|
||||
}
|
||||
|
||||
if (array_key_exists("UsageCode",$param) and $param["UsageCode"] !== null) {
|
||||
$this->UsageCode = $param["UsageCode"];
|
||||
}
|
||||
|
||||
if (array_key_exists("UsageName",$param) and $param["UsageName"] !== null) {
|
||||
$this->UsageName = $param["UsageName"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DeptId",$param) and $param["DeptId"] !== null) {
|
||||
$this->DeptId = $param["DeptId"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DeptName",$param) and $param["DeptName"] !== null) {
|
||||
$this->DeptName = $param["DeptName"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Scope",$param) and $param["Scope"] !== null) {
|
||||
$this->Scope = $param["Scope"];
|
||||
}
|
||||
|
||||
if (array_key_exists("OutpatientOn",$param) and $param["OutpatientOn"] !== null) {
|
||||
$this->OutpatientOn = $param["OutpatientOn"];
|
||||
}
|
||||
|
||||
if (array_key_exists("InHospitalOn",$param) and $param["InHospitalOn"] !== null) {
|
||||
$this->InHospitalOn = $param["InHospitalOn"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DiagCode",$param) and $param["DiagCode"] !== null) {
|
||||
$this->DiagCode = $param["DiagCode"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DiagName",$param) and $param["DiagName"] !== null) {
|
||||
$this->DiagName = $param["DiagName"];
|
||||
}
|
||||
|
||||
if (array_key_exists("IcdCode",$param) and $param["IcdCode"] !== null) {
|
||||
$this->IcdCode = $param["IcdCode"];
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aca\V20210323\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* 鉴别诊断
|
||||
*
|
||||
* @method string getDifferName() 获取鉴别名称
|
||||
* @method void setDifferName(string $DifferName) 设置鉴别名称
|
||||
* @method string getDifferTips() 获取鉴别提示
|
||||
* @method void setDifferTips(string $DifferTips) 设置鉴别提示
|
||||
* @method string getDiseaseGuideInfo() 获取疾病指南信息
|
||||
* @method void setDiseaseGuideInfo(string $DiseaseGuideInfo) 设置疾病指南信息
|
||||
*/
|
||||
class DifferDiagnosis extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var string 鉴别名称
|
||||
*/
|
||||
public $DifferName;
|
||||
|
||||
/**
|
||||
* @var string 鉴别提示
|
||||
*/
|
||||
public $DifferTips;
|
||||
|
||||
/**
|
||||
* @var string 疾病指南信息
|
||||
*/
|
||||
public $DiseaseGuideInfo;
|
||||
|
||||
/**
|
||||
* @param string $DifferName 鉴别名称
|
||||
* @param string $DifferTips 鉴别提示
|
||||
* @param string $DiseaseGuideInfo 疾病指南信息
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("DifferName",$param) and $param["DifferName"] !== null) {
|
||||
$this->DifferName = $param["DifferName"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DifferTips",$param) and $param["DifferTips"] !== null) {
|
||||
$this->DifferTips = $param["DifferTips"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DiseaseGuideInfo",$param) and $param["DiseaseGuideInfo"] !== null) {
|
||||
$this->DiseaseGuideInfo = $param["DiseaseGuideInfo"];
|
||||
}
|
||||
}
|
||||
}
|
77
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/DocInfo.php
vendored
Normal file
77
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/DocInfo.php
vendored
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aca\V20210323\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* 药品文档信息
|
||||
*
|
||||
* @method string getDrugId() 获取药品ID
|
||||
* @method void setDrugId(string $DrugId) 设置药品ID
|
||||
* @method string getDrugName() 获取药品名称
|
||||
* @method void setDrugName(string $DrugName) 设置药品名称
|
||||
* @method string getDocUrl() 获取说明书地址
|
||||
* @method void setDocUrl(string $DocUrl) 设置说明书地址
|
||||
*/
|
||||
class DocInfo extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var string 药品ID
|
||||
*/
|
||||
public $DrugId;
|
||||
|
||||
/**
|
||||
* @var string 药品名称
|
||||
*/
|
||||
public $DrugName;
|
||||
|
||||
/**
|
||||
* @var string 说明书地址
|
||||
*/
|
||||
public $DocUrl;
|
||||
|
||||
/**
|
||||
* @param string $DrugId 药品ID
|
||||
* @param string $DrugName 药品名称
|
||||
* @param string $DocUrl 说明书地址
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("DrugId",$param) and $param["DrugId"] !== null) {
|
||||
$this->DrugId = $param["DrugId"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DrugName",$param) and $param["DrugName"] !== null) {
|
||||
$this->DrugName = $param["DrugName"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DocUrl",$param) and $param["DocUrl"] !== null) {
|
||||
$this->DocUrl = $param["DocUrl"];
|
||||
}
|
||||
}
|
||||
}
|
77
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/DoctorInfo.php
vendored
Normal file
77
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/DoctorInfo.php
vendored
Normal file
@ -0,0 +1,77 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aca\V20210323\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* 医生信息
|
||||
*
|
||||
* @method string getDoctorId() 获取医生ID
|
||||
* @method void setDoctorId(string $DoctorId) 设置医生ID
|
||||
* @method string getDoctorName() 获取医生姓名
|
||||
* @method void setDoctorName(string $DoctorName) 设置医生姓名
|
||||
* @method string getDoctorPhone() 获取医生电话
|
||||
* @method void setDoctorPhone(string $DoctorPhone) 设置医生电话
|
||||
*/
|
||||
class DoctorInfo extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var string 医生ID
|
||||
*/
|
||||
public $DoctorId;
|
||||
|
||||
/**
|
||||
* @var string 医生姓名
|
||||
*/
|
||||
public $DoctorName;
|
||||
|
||||
/**
|
||||
* @var string 医生电话
|
||||
*/
|
||||
public $DoctorPhone;
|
||||
|
||||
/**
|
||||
* @param string $DoctorId 医生ID
|
||||
* @param string $DoctorName 医生姓名
|
||||
* @param string $DoctorPhone 医生电话
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("DoctorId",$param) and $param["DoctorId"] !== null) {
|
||||
$this->DoctorId = $param["DoctorId"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DoctorName",$param) and $param["DoctorName"] !== null) {
|
||||
$this->DoctorName = $param["DoctorName"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DoctorPhone",$param) and $param["DoctorPhone"] !== null) {
|
||||
$this->DoctorPhone = $param["DoctorPhone"];
|
||||
}
|
||||
}
|
||||
}
|
210
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/Drug.php
vendored
Normal file
210
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/Drug.php
vendored
Normal file
@ -0,0 +1,210 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aca\V20210323\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* 药品信息
|
||||
*
|
||||
* @method string getDrugOrgId() 获取医院药品id
|
||||
* @method void setDrugOrgId(string $DrugOrgId) 设置医院药品id
|
||||
* @method string getDrugName() 获取医院药品通用名
|
||||
* @method void setDrugName(string $DrugName) 设置医院药品通用名
|
||||
* @method string getDrugCommodityName() 获取医院药品商品名
|
||||
* @method void setDrugCommodityName(string $DrugCommodityName) 设置医院药品商品名
|
||||
* @method string getSpecifications() 获取医院药品规格
|
||||
* @method void setSpecifications(string $Specifications) 设置医院药品规格
|
||||
* @method string getApprovalNumber() 获取医院药品批准文号
|
||||
* @method void setApprovalNumber(string $ApprovalNumber) 设置医院药品批准文号
|
||||
* @method string getManufacturer() 获取生产厂商
|
||||
* @method void setManufacturer(string $Manufacturer) 设置生产厂商
|
||||
* @method string getDosageForm() 获取剂型
|
||||
* @method void setDosageForm(string $DosageForm) 设置剂型
|
||||
* @method integer getUnuse() 获取使用状态 0:启用 1:停用
|
||||
* @method void setUnuse(integer $Unuse) 设置使用状态 0:启用 1:停用
|
||||
* @method string getDosageFormCode() 获取剂型编码
|
||||
* @method void setDosageFormCode(string $DosageFormCode) 设置剂型编码
|
||||
* @method string getDefinedDailyDose() 获取抗菌药DDD值
|
||||
* @method void setDefinedDailyDose(string $DefinedDailyDose) 设置抗菌药DDD值
|
||||
* @method string getAmount() 获取药品单价
|
||||
* @method void setAmount(string $Amount) 设置药品单价
|
||||
* @method string getYbCode() 获取国家医保编码
|
||||
* @method void setYbCode(string $YbCode) 设置国家医保编码
|
||||
* @method string getDrugBasicCode() 获取药品本位码
|
||||
* @method void setDrugBasicCode(string $DrugBasicCode) 设置药品本位码
|
||||
* @method DurgPropertyInfo getPropertyInfo() 获取药品属性
|
||||
* @method void setPropertyInfo(DurgPropertyInfo $PropertyInfo) 设置药品属性
|
||||
*/
|
||||
class Drug extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var string 医院药品id
|
||||
*/
|
||||
public $DrugOrgId;
|
||||
|
||||
/**
|
||||
* @var string 医院药品通用名
|
||||
*/
|
||||
public $DrugName;
|
||||
|
||||
/**
|
||||
* @var string 医院药品商品名
|
||||
*/
|
||||
public $DrugCommodityName;
|
||||
|
||||
/**
|
||||
* @var string 医院药品规格
|
||||
*/
|
||||
public $Specifications;
|
||||
|
||||
/**
|
||||
* @var string 医院药品批准文号
|
||||
*/
|
||||
public $ApprovalNumber;
|
||||
|
||||
/**
|
||||
* @var string 生产厂商
|
||||
*/
|
||||
public $Manufacturer;
|
||||
|
||||
/**
|
||||
* @var string 剂型
|
||||
*/
|
||||
public $DosageForm;
|
||||
|
||||
/**
|
||||
* @var integer 使用状态 0:启用 1:停用
|
||||
*/
|
||||
public $Unuse;
|
||||
|
||||
/**
|
||||
* @var string 剂型编码
|
||||
*/
|
||||
public $DosageFormCode;
|
||||
|
||||
/**
|
||||
* @var string 抗菌药DDD值
|
||||
*/
|
||||
public $DefinedDailyDose;
|
||||
|
||||
/**
|
||||
* @var string 药品单价
|
||||
*/
|
||||
public $Amount;
|
||||
|
||||
/**
|
||||
* @var string 国家医保编码
|
||||
*/
|
||||
public $YbCode;
|
||||
|
||||
/**
|
||||
* @var string 药品本位码
|
||||
*/
|
||||
public $DrugBasicCode;
|
||||
|
||||
/**
|
||||
* @var DurgPropertyInfo 药品属性
|
||||
*/
|
||||
public $PropertyInfo;
|
||||
|
||||
/**
|
||||
* @param string $DrugOrgId 医院药品id
|
||||
* @param string $DrugName 医院药品通用名
|
||||
* @param string $DrugCommodityName 医院药品商品名
|
||||
* @param string $Specifications 医院药品规格
|
||||
* @param string $ApprovalNumber 医院药品批准文号
|
||||
* @param string $Manufacturer 生产厂商
|
||||
* @param string $DosageForm 剂型
|
||||
* @param integer $Unuse 使用状态 0:启用 1:停用
|
||||
* @param string $DosageFormCode 剂型编码
|
||||
* @param string $DefinedDailyDose 抗菌药DDD值
|
||||
* @param string $Amount 药品单价
|
||||
* @param string $YbCode 国家医保编码
|
||||
* @param string $DrugBasicCode 药品本位码
|
||||
* @param DurgPropertyInfo $PropertyInfo 药品属性
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("DrugOrgId",$param) and $param["DrugOrgId"] !== null) {
|
||||
$this->DrugOrgId = $param["DrugOrgId"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DrugName",$param) and $param["DrugName"] !== null) {
|
||||
$this->DrugName = $param["DrugName"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DrugCommodityName",$param) and $param["DrugCommodityName"] !== null) {
|
||||
$this->DrugCommodityName = $param["DrugCommodityName"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Specifications",$param) and $param["Specifications"] !== null) {
|
||||
$this->Specifications = $param["Specifications"];
|
||||
}
|
||||
|
||||
if (array_key_exists("ApprovalNumber",$param) and $param["ApprovalNumber"] !== null) {
|
||||
$this->ApprovalNumber = $param["ApprovalNumber"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Manufacturer",$param) and $param["Manufacturer"] !== null) {
|
||||
$this->Manufacturer = $param["Manufacturer"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DosageForm",$param) and $param["DosageForm"] !== null) {
|
||||
$this->DosageForm = $param["DosageForm"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Unuse",$param) and $param["Unuse"] !== null) {
|
||||
$this->Unuse = $param["Unuse"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DosageFormCode",$param) and $param["DosageFormCode"] !== null) {
|
||||
$this->DosageFormCode = $param["DosageFormCode"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DefinedDailyDose",$param) and $param["DefinedDailyDose"] !== null) {
|
||||
$this->DefinedDailyDose = $param["DefinedDailyDose"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Amount",$param) and $param["Amount"] !== null) {
|
||||
$this->Amount = $param["Amount"];
|
||||
}
|
||||
|
||||
if (array_key_exists("YbCode",$param) and $param["YbCode"] !== null) {
|
||||
$this->YbCode = $param["YbCode"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DrugBasicCode",$param) and $param["DrugBasicCode"] !== null) {
|
||||
$this->DrugBasicCode = $param["DrugBasicCode"];
|
||||
}
|
||||
|
||||
if (array_key_exists("PropertyInfo",$param) and $param["PropertyInfo"] !== null) {
|
||||
$this->PropertyInfo = new DurgPropertyInfo();
|
||||
$this->PropertyInfo->deserialize($param["PropertyInfo"]);
|
||||
}
|
||||
}
|
||||
}
|
89
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/DrugList.php
vendored
Normal file
89
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/DrugList.php
vendored
Normal file
@ -0,0 +1,89 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aca\V20210323\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* 药品列表
|
||||
*
|
||||
* @method string getDrugId() 获取药品ID
|
||||
* @method void setDrugId(string $DrugId) 设置药品ID
|
||||
* @method string getDrugName() 获取药品名称
|
||||
* @method void setDrugName(string $DrugName) 设置药品名称
|
||||
* @method string getDocUrl() 获取文档地址
|
||||
* @method void setDocUrl(string $DocUrl) 设置文档地址
|
||||
* @method boolean getNotFound() 获取是否找到
|
||||
* @method void setNotFound(boolean $NotFound) 设置是否找到
|
||||
*/
|
||||
class DrugList extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var string 药品ID
|
||||
*/
|
||||
public $DrugId;
|
||||
|
||||
/**
|
||||
* @var string 药品名称
|
||||
*/
|
||||
public $DrugName;
|
||||
|
||||
/**
|
||||
* @var string 文档地址
|
||||
*/
|
||||
public $DocUrl;
|
||||
|
||||
/**
|
||||
* @var boolean 是否找到
|
||||
*/
|
||||
public $NotFound;
|
||||
|
||||
/**
|
||||
* @param string $DrugId 药品ID
|
||||
* @param string $DrugName 药品名称
|
||||
* @param string $DocUrl 文档地址
|
||||
* @param boolean $NotFound 是否找到
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("DrugId",$param) and $param["DrugId"] !== null) {
|
||||
$this->DrugId = $param["DrugId"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DrugName",$param) and $param["DrugName"] !== null) {
|
||||
$this->DrugName = $param["DrugName"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DocUrl",$param) and $param["DocUrl"] !== null) {
|
||||
$this->DocUrl = $param["DocUrl"];
|
||||
}
|
||||
|
||||
if (array_key_exists("NotFound",$param) and $param["NotFound"] !== null) {
|
||||
$this->NotFound = $param["NotFound"];
|
||||
}
|
||||
}
|
||||
}
|
269
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/DrugUsage.php
vendored
Normal file
269
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/DrugUsage.php
vendored
Normal file
@ -0,0 +1,269 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aca\V20210323\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* 处方药品信息
|
||||
*
|
||||
* @method string getDrugId() 获取药品ID
|
||||
* @method void setDrugId(string $DrugId) 设置药品ID
|
||||
* @method string getDrugName() 获取药品名称
|
||||
* @method void setDrugName(string $DrugName) 设置药品名称
|
||||
* @method string getTimePerDay() 获取日服药频次
|
||||
* @method void setTimePerDay(string $TimePerDay) 设置日服药频次
|
||||
* @method string getUsage() 获取给药途径
|
||||
* @method void setUsage(string $Usage) 设置给药途径
|
||||
* @method string getPrescriptionId() 获取处方ID,药品不同分组是传不同的处方ID
|
||||
* @method void setPrescriptionId(string $PrescriptionId) 设置处方ID,药品不同分组是传不同的处方ID
|
||||
* @method string getDosagePerTime() 获取每次剂量
|
||||
* @method void setDosagePerTime(string $DosagePerTime) 设置每次剂量
|
||||
* @method string getDosagePerTimeUnit() 获取每次剂量单位
|
||||
* @method void setDosagePerTimeUnit(string $DosagePerTimeUnit) 设置每次剂量单位
|
||||
* @method string getTime() 获取单次服药时间
|
||||
* @method void setTime(string $Time) 设置单次服药时间
|
||||
* @method string getCycle() 获取给药周期
|
||||
* @method void setCycle(string $Cycle) 设置给药周期
|
||||
* @method string getDosagePerDay() 获取单日剂量
|
||||
* @method void setDosagePerDay(string $DosagePerDay) 设置单日剂量
|
||||
* @method string getCourse() 获取疗程
|
||||
* @method void setCourse(string $Course) 设置疗程
|
||||
* @method string getSpeed() 获取给药速度
|
||||
* @method void setSpeed(string $Speed) 设置给药速度
|
||||
* @method integer getBeginTime() 获取处方生效时间戳,住院医嘱必须传(caseType =1)
|
||||
* @method void setBeginTime(integer $BeginTime) 设置处方生效时间戳,住院医嘱必须传(caseType =1)
|
||||
* @method integer getEndTime() 获取处方失效时间戳,住院医嘱必须传(caseType =1)
|
||||
* @method void setEndTime(integer $EndTime) 设置处方失效时间戳,住院医嘱必须传(caseType =1)
|
||||
* @method string getPackage() 获取开具数量
|
||||
* @method void setPackage(string $Package) 设置开具数量
|
||||
* @method string getPackageUnit() 获取开具数量单位
|
||||
* @method void setPackageUnit(string $PackageUnit) 设置开具数量单位
|
||||
* @method string getGroupInj() 获取相同标志液体间进行配伍禁忌审核,不同标志间液体不进行配伍禁忌审核
|
||||
* @method void setGroupInj(string $GroupInj) 设置相同标志液体间进行配伍禁忌审核,不同标志间液体不进行配伍禁忌审核
|
||||
* @method string getPrescriptionCharge() 获取处方金额
|
||||
* @method void setPrescriptionCharge(string $PrescriptionCharge) 设置处方金额
|
||||
* @method string getMedicationDays() 获取用药天数
|
||||
* @method void setMedicationDays(string $MedicationDays) 设置用药天数
|
||||
*/
|
||||
class DrugUsage extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var string 药品ID
|
||||
*/
|
||||
public $DrugId;
|
||||
|
||||
/**
|
||||
* @var string 药品名称
|
||||
*/
|
||||
public $DrugName;
|
||||
|
||||
/**
|
||||
* @var string 日服药频次
|
||||
*/
|
||||
public $TimePerDay;
|
||||
|
||||
/**
|
||||
* @var string 给药途径
|
||||
*/
|
||||
public $Usage;
|
||||
|
||||
/**
|
||||
* @var string 处方ID,药品不同分组是传不同的处方ID
|
||||
*/
|
||||
public $PrescriptionId;
|
||||
|
||||
/**
|
||||
* @var string 每次剂量
|
||||
*/
|
||||
public $DosagePerTime;
|
||||
|
||||
/**
|
||||
* @var string 每次剂量单位
|
||||
*/
|
||||
public $DosagePerTimeUnit;
|
||||
|
||||
/**
|
||||
* @var string 单次服药时间
|
||||
*/
|
||||
public $Time;
|
||||
|
||||
/**
|
||||
* @var string 给药周期
|
||||
*/
|
||||
public $Cycle;
|
||||
|
||||
/**
|
||||
* @var string 单日剂量
|
||||
*/
|
||||
public $DosagePerDay;
|
||||
|
||||
/**
|
||||
* @var string 疗程
|
||||
*/
|
||||
public $Course;
|
||||
|
||||
/**
|
||||
* @var string 给药速度
|
||||
*/
|
||||
public $Speed;
|
||||
|
||||
/**
|
||||
* @var integer 处方生效时间戳,住院医嘱必须传(caseType =1)
|
||||
*/
|
||||
public $BeginTime;
|
||||
|
||||
/**
|
||||
* @var integer 处方失效时间戳,住院医嘱必须传(caseType =1)
|
||||
*/
|
||||
public $EndTime;
|
||||
|
||||
/**
|
||||
* @var string 开具数量
|
||||
*/
|
||||
public $Package;
|
||||
|
||||
/**
|
||||
* @var string 开具数量单位
|
||||
*/
|
||||
public $PackageUnit;
|
||||
|
||||
/**
|
||||
* @var string 相同标志液体间进行配伍禁忌审核,不同标志间液体不进行配伍禁忌审核
|
||||
*/
|
||||
public $GroupInj;
|
||||
|
||||
/**
|
||||
* @var string 处方金额
|
||||
*/
|
||||
public $PrescriptionCharge;
|
||||
|
||||
/**
|
||||
* @var string 用药天数
|
||||
*/
|
||||
public $MedicationDays;
|
||||
|
||||
/**
|
||||
* @param string $DrugId 药品ID
|
||||
* @param string $DrugName 药品名称
|
||||
* @param string $TimePerDay 日服药频次
|
||||
* @param string $Usage 给药途径
|
||||
* @param string $PrescriptionId 处方ID,药品不同分组是传不同的处方ID
|
||||
* @param string $DosagePerTime 每次剂量
|
||||
* @param string $DosagePerTimeUnit 每次剂量单位
|
||||
* @param string $Time 单次服药时间
|
||||
* @param string $Cycle 给药周期
|
||||
* @param string $DosagePerDay 单日剂量
|
||||
* @param string $Course 疗程
|
||||
* @param string $Speed 给药速度
|
||||
* @param integer $BeginTime 处方生效时间戳,住院医嘱必须传(caseType =1)
|
||||
* @param integer $EndTime 处方失效时间戳,住院医嘱必须传(caseType =1)
|
||||
* @param string $Package 开具数量
|
||||
* @param string $PackageUnit 开具数量单位
|
||||
* @param string $GroupInj 相同标志液体间进行配伍禁忌审核,不同标志间液体不进行配伍禁忌审核
|
||||
* @param string $PrescriptionCharge 处方金额
|
||||
* @param string $MedicationDays 用药天数
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("DrugId",$param) and $param["DrugId"] !== null) {
|
||||
$this->DrugId = $param["DrugId"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DrugName",$param) and $param["DrugName"] !== null) {
|
||||
$this->DrugName = $param["DrugName"];
|
||||
}
|
||||
|
||||
if (array_key_exists("TimePerDay",$param) and $param["TimePerDay"] !== null) {
|
||||
$this->TimePerDay = $param["TimePerDay"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Usage",$param) and $param["Usage"] !== null) {
|
||||
$this->Usage = $param["Usage"];
|
||||
}
|
||||
|
||||
if (array_key_exists("PrescriptionId",$param) and $param["PrescriptionId"] !== null) {
|
||||
$this->PrescriptionId = $param["PrescriptionId"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DosagePerTime",$param) and $param["DosagePerTime"] !== null) {
|
||||
$this->DosagePerTime = $param["DosagePerTime"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DosagePerTimeUnit",$param) and $param["DosagePerTimeUnit"] !== null) {
|
||||
$this->DosagePerTimeUnit = $param["DosagePerTimeUnit"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Time",$param) and $param["Time"] !== null) {
|
||||
$this->Time = $param["Time"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Cycle",$param) and $param["Cycle"] !== null) {
|
||||
$this->Cycle = $param["Cycle"];
|
||||
}
|
||||
|
||||
if (array_key_exists("DosagePerDay",$param) and $param["DosagePerDay"] !== null) {
|
||||
$this->DosagePerDay = $param["DosagePerDay"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Course",$param) and $param["Course"] !== null) {
|
||||
$this->Course = $param["Course"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Speed",$param) and $param["Speed"] !== null) {
|
||||
$this->Speed = $param["Speed"];
|
||||
}
|
||||
|
||||
if (array_key_exists("BeginTime",$param) and $param["BeginTime"] !== null) {
|
||||
$this->BeginTime = $param["BeginTime"];
|
||||
}
|
||||
|
||||
if (array_key_exists("EndTime",$param) and $param["EndTime"] !== null) {
|
||||
$this->EndTime = $param["EndTime"];
|
||||
}
|
||||
|
||||
if (array_key_exists("Package",$param) and $param["Package"] !== null) {
|
||||
$this->Package = $param["Package"];
|
||||
}
|
||||
|
||||
if (array_key_exists("PackageUnit",$param) and $param["PackageUnit"] !== null) {
|
||||
$this->PackageUnit = $param["PackageUnit"];
|
||||
}
|
||||
|
||||
if (array_key_exists("GroupInj",$param) and $param["GroupInj"] !== null) {
|
||||
$this->GroupInj = $param["GroupInj"];
|
||||
}
|
||||
|
||||
if (array_key_exists("PrescriptionCharge",$param) and $param["PrescriptionCharge"] !== null) {
|
||||
$this->PrescriptionCharge = $param["PrescriptionCharge"];
|
||||
}
|
||||
|
||||
if (array_key_exists("MedicationDays",$param) and $param["MedicationDays"] !== null) {
|
||||
$this->MedicationDays = $param["MedicationDays"];
|
||||
}
|
||||
}
|
||||
}
|
113
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/DurgPropertyInfo.php
vendored
Normal file
113
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/DurgPropertyInfo.php
vendored
Normal file
@ -0,0 +1,113 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aca\V20210323\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* 药品属性
|
||||
*
|
||||
* @method integer getDrugType() 获取药品类型 1:西药,2:中成药,3:中药,4:化学药品,5:生物制药
|
||||
* @method void setDrugType(integer $DrugType) 设置药品类型 1:西药,2:中成药,3:中药,4:化学药品,5:生物制药
|
||||
* @method integer getAntibacterialType() 获取抗菌药分类 1:抗真菌药物, 2:抗细菌药物, 3:抗结核药物, 4:其他抗菌药, 0:普通药品
|
||||
* @method void setAntibacterialType(integer $AntibacterialType) 设置抗菌药分类 1:抗真菌药物, 2:抗细菌药物, 3:抗结核药物, 4:其他抗菌药, 0:普通药品
|
||||
* @method integer getAntibacterialClass() 获取抗菌药级别 1:非限制级, 2:限制级, 3:特殊使用级
|
||||
* @method void setAntibacterialClass(integer $AntibacterialClass) 设置抗菌药级别 1:非限制级, 2:限制级, 3:特殊使用级
|
||||
* @method integer getSpeciallyDrugType() 获取特殊药品类型 1:毒性药品, 2:麻醉药品, 3:放射药品, 4:精神一类药品, 5:精神二类药品, 6:其他特管药品, 7:贵重药品
|
||||
* @method void setSpeciallyDrugType(integer $SpeciallyDrugType) 设置特殊药品类型 1:毒性药品, 2:麻醉药品, 3:放射药品, 4:精神一类药品, 5:精神二类药品, 6:其他特管药品, 7:贵重药品
|
||||
* @method integer getIsBasicDrug() 获取是否为基本药物 1:是, 2:否, 0:未知
|
||||
* @method void setIsBasicDrug(integer $IsBasicDrug) 设置是否为基本药物 1:是, 2:否, 0:未知
|
||||
* @method integer getChargeType() 获取社保药品 1:甲类药品, 2:乙类药品, 3:双跨药品, 4:自费药品, 0:未知
|
||||
* @method void setChargeType(integer $ChargeType) 设置社保药品 1:甲类药品, 2:乙类药品, 3:双跨药品, 4:自费药品, 0:未知
|
||||
*/
|
||||
class DurgPropertyInfo extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var integer 药品类型 1:西药,2:中成药,3:中药,4:化学药品,5:生物制药
|
||||
*/
|
||||
public $DrugType;
|
||||
|
||||
/**
|
||||
* @var integer 抗菌药分类 1:抗真菌药物, 2:抗细菌药物, 3:抗结核药物, 4:其他抗菌药, 0:普通药品
|
||||
*/
|
||||
public $AntibacterialType;
|
||||
|
||||
/**
|
||||
* @var integer 抗菌药级别 1:非限制级, 2:限制级, 3:特殊使用级
|
||||
*/
|
||||
public $AntibacterialClass;
|
||||
|
||||
/**
|
||||
* @var integer 特殊药品类型 1:毒性药品, 2:麻醉药品, 3:放射药品, 4:精神一类药品, 5:精神二类药品, 6:其他特管药品, 7:贵重药品
|
||||
*/
|
||||
public $SpeciallyDrugType;
|
||||
|
||||
/**
|
||||
* @var integer 是否为基本药物 1:是, 2:否, 0:未知
|
||||
*/
|
||||
public $IsBasicDrug;
|
||||
|
||||
/**
|
||||
* @var integer 社保药品 1:甲类药品, 2:乙类药品, 3:双跨药品, 4:自费药品, 0:未知
|
||||
*/
|
||||
public $ChargeType;
|
||||
|
||||
/**
|
||||
* @param integer $DrugType 药品类型 1:西药,2:中成药,3:中药,4:化学药品,5:生物制药
|
||||
* @param integer $AntibacterialType 抗菌药分类 1:抗真菌药物, 2:抗细菌药物, 3:抗结核药物, 4:其他抗菌药, 0:普通药品
|
||||
* @param integer $AntibacterialClass 抗菌药级别 1:非限制级, 2:限制级, 3:特殊使用级
|
||||
* @param integer $SpeciallyDrugType 特殊药品类型 1:毒性药品, 2:麻醉药品, 3:放射药品, 4:精神一类药品, 5:精神二类药品, 6:其他特管药品, 7:贵重药品
|
||||
* @param integer $IsBasicDrug 是否为基本药物 1:是, 2:否, 0:未知
|
||||
* @param integer $ChargeType 社保药品 1:甲类药品, 2:乙类药品, 3:双跨药品, 4:自费药品, 0:未知
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("DrugType",$param) and $param["DrugType"] !== null) {
|
||||
$this->DrugType = $param["DrugType"];
|
||||
}
|
||||
|
||||
if (array_key_exists("AntibacterialType",$param) and $param["AntibacterialType"] !== null) {
|
||||
$this->AntibacterialType = $param["AntibacterialType"];
|
||||
}
|
||||
|
||||
if (array_key_exists("AntibacterialClass",$param) and $param["AntibacterialClass"] !== null) {
|
||||
$this->AntibacterialClass = $param["AntibacterialClass"];
|
||||
}
|
||||
|
||||
if (array_key_exists("SpeciallyDrugType",$param) and $param["SpeciallyDrugType"] !== null) {
|
||||
$this->SpeciallyDrugType = $param["SpeciallyDrugType"];
|
||||
}
|
||||
|
||||
if (array_key_exists("IsBasicDrug",$param) and $param["IsBasicDrug"] !== null) {
|
||||
$this->IsBasicDrug = $param["IsBasicDrug"];
|
||||
}
|
||||
|
||||
if (array_key_exists("ChargeType",$param) and $param["ChargeType"] !== null) {
|
||||
$this->ChargeType = $param["ChargeType"];
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aca\V20210323\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* 诊断列表
|
||||
*
|
||||
* @method string getDiagnosisName() 获取诊断名称
|
||||
* @method void setDiagnosisName(string $DiagnosisName) 设置诊断名称
|
||||
* @method string getIcdCode() 获取ICD代码
|
||||
* @method void setIcdCode(string $IcdCode) 设置ICD代码
|
||||
*/
|
||||
class EmrDiagnosises extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var string 诊断名称
|
||||
*/
|
||||
public $DiagnosisName;
|
||||
|
||||
/**
|
||||
* @var string ICD代码
|
||||
*/
|
||||
public $IcdCode;
|
||||
|
||||
/**
|
||||
* @param string $DiagnosisName 诊断名称
|
||||
* @param string $IcdCode ICD代码
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("DiagnosisName",$param) and $param["DiagnosisName"] !== null) {
|
||||
$this->DiagnosisName = $param["DiagnosisName"];
|
||||
}
|
||||
|
||||
if (array_key_exists("IcdCode",$param) and $param["IcdCode"] !== null) {
|
||||
$this->IcdCode = $param["IcdCode"];
|
||||
}
|
||||
}
|
||||
}
|
53
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/EmrQuality.php
vendored
Normal file
53
vendor/tencentcloud/tencentcloud-sdk-php/src/TencentCloud/Aca/V20210323/Models/EmrQuality.php
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aca\V20210323\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* 病历质控
|
||||
*
|
||||
* @method array getMissPhysicalExamination() 获取缺失体格检查项目
|
||||
* @method void setMissPhysicalExamination(array $MissPhysicalExamination) 设置缺失体格检查项目
|
||||
*/
|
||||
class EmrQuality extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var array 缺失体格检查项目
|
||||
*/
|
||||
public $MissPhysicalExamination;
|
||||
|
||||
/**
|
||||
* @param array $MissPhysicalExamination 缺失体格检查项目
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("MissPhysicalExamination",$param) and $param["MissPhysicalExamination"] !== null) {
|
||||
$this->MissPhysicalExamination = $param["MissPhysicalExamination"];
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,58 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
namespace TencentCloud\Aca\V20210323\Models;
|
||||
use TencentCloud\Common\AbstractModel;
|
||||
|
||||
/**
|
||||
* 获取适应症请求
|
||||
*
|
||||
* @method array getDrugs() 获取查询药品列表
|
||||
* @method void setDrugs(array $Drugs) 设置查询药品列表
|
||||
*/
|
||||
class GetDrugIndicationsReqData extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* @var array 查询药品列表
|
||||
*/
|
||||
public $Drugs;
|
||||
|
||||
/**
|
||||
* @param array $Drugs 查询药品列表
|
||||
*/
|
||||
function __construct()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* For internal only. DO NOT USE IT.
|
||||
*/
|
||||
public function deserialize($param)
|
||||
{
|
||||
if ($param === null) {
|
||||
return;
|
||||
}
|
||||
if (array_key_exists("Drugs",$param) and $param["Drugs"] !== null) {
|
||||
$this->Drugs = [];
|
||||
foreach ($param["Drugs"] as $key => $value){
|
||||
$obj = new IndicationsDrug();
|
||||
$obj->deserialize($value);
|
||||
array_push($this->Drugs, $obj);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user