初始化代码

This commit is contained in:
2025-08-11 10:22:05 +08:00
commit ebd8d85201
4206 changed files with 753018 additions and 0 deletions

View File

@@ -0,0 +1,57 @@
<?php
namespace app\api\wxapi\media;
use app\api\wxapi\Base;
/*
* */
class GetPicTextList extends Base
{
private $apiParas = array();
private $getParas = array();
public function init(){
$this->setOffset();
$this->setCount();
}
public function getApiMethodName(){
return "cgi-bin/material/batchget_material";
}
public function getApiParas(){
return $this->apiParas;
}
public function getGetParas(){
return $this->getParas;
}
public function putOtherTextParam($key, $value){
$this->apiParas[$key] = $value;
$this->$key = $value;
}
public function setAccessToken($access_token){
$this->getParas["access_token"] = $access_token;
}
public function getAccessToken(){
return $this->getParas["access_token"];
}
public function setTypes($type){ //素材的类型图片image、视频video、语音 voice、图文news
$this->apiParas["type"] = $type;
}
public function setOffset($offset=0){
$this->apiParas["offset"] = $offset;
}
public function setCount($count=20){
$this->apiParas["count"] = $count;
}
}