mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
修改操作日志
This commit is contained in:
parent
728726f1a3
commit
786fdb8f12
@ -69,7 +69,7 @@ class Config extends Controller
|
||||
$this->error($exception->getMessage());
|
||||
}
|
||||
}
|
||||
sysoplog('微信管理', '修改微信授权配置成功');
|
||||
sysoplog('微信授权配置', '修改微信授权配置成功');
|
||||
$location = url('wechat/config/options')->build() . '?uniqid=' . uniqid();
|
||||
$this->success('微信参数修改成功!', sysuri('admin/index/index') . "#{$location}");
|
||||
}
|
||||
@ -138,7 +138,7 @@ class Config extends Controller
|
||||
}
|
||||
}
|
||||
foreach ($this->request->post() as $k => $v) sysconf($k, $v);
|
||||
sysoplog('微信管理', '修改微信支付配置成功');
|
||||
sysoplog('微信授权配置', '修改微信支付配置成功');
|
||||
$this->success('微信支付配置成功!');
|
||||
} else {
|
||||
$this->error('抱歉,访问方式错误!');
|
||||
|
@ -75,6 +75,7 @@ class Fans extends Controller
|
||||
*/
|
||||
public function sync()
|
||||
{
|
||||
sysoplog('微信授权配置', '创建粉丝用户同步任务');
|
||||
$this->_queue('同步微信用户数据', "xadmin:fansall");
|
||||
}
|
||||
|
||||
|
@ -96,22 +96,22 @@ class Menu extends Controller
|
||||
$data = $this->request->post('data');
|
||||
if (empty($data)) try {
|
||||
WechatService::WeChatMenu()->delete();
|
||||
sysoplog('微信管理', '删除微信菜单成功');
|
||||
sysoplog('微信菜单管理', '删除微信菜单成功');
|
||||
$this->success('删除微信菜单成功!', '');
|
||||
} catch (HttpResponseException $exception) {
|
||||
throw $exception;
|
||||
} catch (\Exception $exception) {
|
||||
sysoplog('微信管理', "删除微信菜单失败:{$exception->getMessage()}");
|
||||
sysoplog('微信菜单管理', "删除微信菜单失败:{$exception->getMessage()}");
|
||||
$this->error("删除微信菜单失败,请稍候再试!<br>{$exception->getMessage()}");
|
||||
} else try {
|
||||
sysdata($this->ckey, $this->_buildMenuData(json_decode($data, true)));
|
||||
WechatService::WeChatMenu()->create(['button' => sysdata($this->ckey)]);
|
||||
sysoplog('微信管理', '发布微信菜单成功');
|
||||
sysoplog('微信菜单管理', '发布微信菜单成功');
|
||||
$this->success('保存发布菜单成功!', '');
|
||||
} catch (HttpResponseException $exception) {
|
||||
throw $exception;
|
||||
} catch (\Exception $exception) {
|
||||
sysoplog('微信管理', "发布微信菜单失败:{$exception->getMessage()}");
|
||||
sysoplog('微信菜单管理', "发布微信菜单失败:{$exception->getMessage()}");
|
||||
$this->error("微信菜单发布失败,请稍候再试!<br> {$exception->getMessage()}");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user