mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 05:50:50 +00:00
微信菜单和关键字添加修改优化。
This commit is contained in:
parent
30352c8147
commit
1e6fa62cef
@ -53,7 +53,7 @@ class WechatMenuServices extends BaseServices
|
||||
{
|
||||
try {
|
||||
WechatService::menuService()->add($buttons);
|
||||
if ($this->dao->count(['key' => 'wechat_menus', 'result' => json_encode($buttons)])) {
|
||||
if ($this->dao->count(['key' => 'wechat_menus'])) {
|
||||
$this->dao->update('wechat_menus', ['result' => json_encode($buttons), 'add_time' => time()], 'key');
|
||||
} else {
|
||||
$this->dao->save(['key' => 'wechat_menus', 'result' => json_encode($buttons), 'add_time' => time()]);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user