weixinConfig); $result = $app->material->list($type, $offset, $count); // 记录日志 $uid = defined('UID') ? UID : ''; platformLog([ 'type' => $type, 'offset' => $offset, 'count' => $count ], $result, 'easywechat_weixin_material_get_list_uid_' . $uid); return $result; } /** * 获取素材计数 * @date 2022-12-01 */ public function countMaterial() { $app = Factory::officialAccount($this->weixinConfig); $number = $app->material->stats(); // 记录日志 $uid = defined('UID') ? UID : ''; platformLog([], $number, 'easywechat_weixin_material_count_uid_' . $uid); return $number; } }