mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-02-08 23:45:34 +00:00
微信菜单conut 函数报错修复
This commit is contained in:
parent
65cd47571a
commit
b3ec131516
@ -21,7 +21,7 @@ class Reply extends AuthController
|
||||
if(empty(input('key'))) return $this->failed('请输入参数key');
|
||||
if(empty(input('title'))) return $this->failed('请输入参数title');
|
||||
$replay = WechatReply::where('key',input('key'))->find();
|
||||
$replay_arr =count($replay) ? $replay->toArray() : [];
|
||||
$replay_arr =!empty($replay) ? $replay->toArray() : [];
|
||||
$replay_arr['data'] = json_decode(isset($replay_arr['data']) ? $replay_arr['data'] : '',true);
|
||||
$this->assign('replay_arr',json_encode($replay_arr));
|
||||
$this->assign('key',input('key'));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user