mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 14:01:07 +00:00
【程序目录】优化图文消息
This commit is contained in:
parent
030e41c509
commit
e6f8fe5481
@ -103,7 +103,7 @@ class WechatReplyServices extends BaseServices
|
||||
if ($id == 'undefined') {
|
||||
$id = 0;
|
||||
}
|
||||
if ($data['content'] == '' && $data['src'] == '') $data = $data['list'][0] ?? [];
|
||||
if (isset($data['content']) && $data['content'] == '' && isset($data['src']) && $data['src'] == '') $data = $data['list'][0] ?? [];
|
||||
try {
|
||||
$res = $this->{$method}($data, $id);
|
||||
} catch (\Throwable $e) {
|
||||
@ -292,6 +292,9 @@ class WechatReplyServices extends BaseServices
|
||||
*/
|
||||
public function tidyNews($data, $id = 0)
|
||||
{
|
||||
if ($id != 0) {
|
||||
$data = $data['list'][0];
|
||||
}
|
||||
if (!count($data)) {
|
||||
throw new AdminException(400709);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user