diff --git a/controller/Controller.php b/controller/Controller.php index ea9e4af..b60e379 100644 --- a/controller/Controller.php +++ b/controller/Controller.php @@ -164,16 +164,14 @@ Class Controller { //error log protected function logError($error_message) { - if (!empty(FSC::$app['config']['debug'])) { - $thisUrl = FSC::$app['requestUrl']; - $logTime = date('Y-m-d H:i:s'); - $logDir = __DIR__ . '/../runtime/logs/'; - $logFilename = 'error.log'; - $logOk = @error_log("{$logTime}\t{$thisUrl}\tERROR: {$error_message}\n", 3, "{$logDir}{$logFilename}"); - if (!$logOk) { //try to mkdir - @mkdir($logDir, 0700, true); - @error_log("{$logTime}\t{$thisUrl}\tERROR: {$error_message}\n", 3, "{$logDir}{$logFilename}"); - } + $thisUrl = FSC::$app['requestUrl']; + $logTime = date('Y-m-d H:i:s'); + $logDir = __DIR__ . '/../runtime/logs/'; + $logFilename = 'error.log'; + $logOk = @error_log("{$logTime}\t{$thisUrl}\tERROR: {$error_message}\n", 3, "{$logDir}{$logFilename}"); + if (!$logOk) { //try to mkdir + @mkdir($logDir, 0700, true); + @error_log("{$logTime}\t{$thisUrl}\tERROR: {$error_message}\n", 3, "{$logDir}{$logFilename}"); } } diff --git a/themes/tajian/views/site/register.php b/themes/tajian/views/site/register.php index 655246b..2c264b0 100644 --- a/themes/tajian/views/site/register.php +++ b/themes/tajian/views/site/register.php @@ -3,10 +3,7 @@
- -

- Ta荐客服微信二维码 -

+
diff --git a/www/js/tajian.js b/www/js/tajian.js index d684831..1e7d89b 100644 --- a/www/js/tajian.js +++ b/www/js/tajian.js @@ -175,24 +175,12 @@ if ($('#add_video_form').get(0)) { $('#add_video_form').submit(handle_add_fav); } -// 注册/登录等页面展示客服微信二维码切换按钮 +// 注册帮用户填默认邀请码 if ($('.bt_kf_JS').get(0)) { - var kf_hide_text = $('.bt_kf_JS').attr('data-hide'), - kf_text = $('.bt_kf_JS').text(); + var kf_default_code = $('.bt_kf_JS').attr('data-default-code'); $('.bt_kf_JS').click(function(e) { - if ($('.kf_wx_JS').hasClass('hide')) { - $('.kf_wx_JS').removeClass('hide'); - $('.bt_kf_JS').text(kf_hide_text); - }else { - $('.kf_wx_JS').addClass('hide'); - $('.bt_kf_JS').text(kf_text); - } + $('input[name=friendscode]').val(kf_default_code); }); - - var win_width = $(window).width(); - if (win_width > 768 && $('.tajian_index').get(0)) { - $('.bt_kf_JS').click().addClass('hide'); - } } //验证码发送