Files
tuiguangzhushou/vendor/cjango/wechat/src/Wechat/Material.php
2020-08-06 15:26:41 +08:00

52 lines
1.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +------------------------------------------------+
// |http://www.cjango.com |
// +------------------------------------------------+
// | 修复BUG不是一朝一夕的事情等我喝醉了再说吧 |
// +------------------------------------------------+
// | Author: 小陈叔叔 <Jason.Chen> |
// +------------------------------------------------+
namespace cjango\Wechat;
use cjango\Wechat;
/**
* 素材管理
*/
class Material extends Wechat
{
/**
* 接口名称与URL映射
* @var array
*/
protected static $url = [
'media_upload' => 'https://api.weixin.qq.com/cgi-bin/media/upload', // 新增临时素材
'media_get' => 'https://api.weixin.qq.com/cgi-bin/media/get', // 获取临时素材
'material_news' => 'https://api.weixin.qq.com/cgi-bin/material/add_news', // 新增永久图文素材
'material_material' => 'https://api.weixin.qq.com/cgi-bin/material/add_material', // 新增永久素材
'material_get' => 'https://api.weixin.qq.com/cgi-bin/material/get_material', // 获取永久素材
'material_del' => 'https://api.weixin.qq.com/cgi-bin/material/del_material', // 删除永久素材
'material_update' => 'https://api.weixin.qq.com/cgi-bin/material/update_news', // 修改永久图文素材
'material_count' => 'https://api.weixin.qq.com/cgi-bin/material/get_materialcount', // 获取永久素材数量
'material_lists' => 'https://api.weixin.qq.com/cgi-bin/material/batchget_material', // 获取永久素材列表
];
/**
* 新增临时素材
* @return [type] [description]
*/
public static function upload()
{
#Todo..
}
/**
* 获取临时素材
* @return [type] [description]
*/
public static function get()
{
#Todo..
}
}