|
@@ -103,7 +103,7 @@ class WechatReplyServices extends BaseServices
|
|
|
if ($id == 'undefined') {
|
|
if ($id == 'undefined') {
|
|
|
$id = 0;
|
|
$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 {
|
|
try {
|
|
|
$res = $this->{$method}($data, $id);
|
|
$res = $this->{$method}($data, $id);
|
|
|
} catch (\Throwable $e) {
|
|
} catch (\Throwable $e) {
|
|
@@ -292,6 +292,9 @@ class WechatReplyServices extends BaseServices
|
|
|
*/
|
|
*/
|
|
|
public function tidyNews($data, $id = 0)
|
|
public function tidyNews($data, $id = 0)
|
|
|
{
|
|
{
|
|
|
|
|
+ if ($id != 0) {
|
|
|
|
|
+ $data = $data['list'][0];
|
|
|
|
|
+ }
|
|
|
if (!count($data)) {
|
|
if (!count($data)) {
|
|
|
throw new AdminException(400709);
|
|
throw new AdminException(400709);
|
|
|
}
|
|
}
|