1
0
Song 4 жил өмнө
parent
commit
12b684a56f
2 өөрчлөгдсөн 13 нэмэгдсэн , 1 устгасан
  1. 1 1
      routers/index.js
  2. 12 0
      views/configure.ejs

+ 1 - 1
routers/index.js

@@ -91,7 +91,7 @@ router.get('/configure', userRequired, (req, res, next) => {
     showPasswordWarning = true;
   }
   res.locals.message = req.flash('message');
-  res.locals.showPasswordWarning = true;
+  res.locals.showPasswordWarning = showPasswordWarning;
   res.render('configure', req.session.user);
 });
 

+ 12 - 0
views/configure.ejs

@@ -14,6 +14,18 @@
                 </div>
             </article>
         <% }%>
+        <article class="message is-light">
+            <div class="message-header">
+                <p>注意</p>
+            </div>
+            <div class="message-body">
+                如果遇到问题,请仔细阅读 <a target="_blank" href="https://github.com/songquanpeng/message-pusher/blob/master/README.md">README</a>,如果还不能解决,请提 <a target="_blank" href="https://github.com/songquanpeng/message-pusher/issues/new">issue</a>。
+                <br>
+                <a target="_blank" href="https://mp.weixin.qq.com/debug/cgi-bin/sandboxinfo?action=showinfo&t=sandbox/index">微信公众平台测试号配置链接</a>。
+                <br>
+                如果本项目对你有意义,<a target="_blank" href="https://github.com/songquanpeng/message-pusher">请 ⭐ 该项目</a>,<del>这是我继续维护的主要动力</del>,谢谢 :)。
+            </div>
+        </article>
         <form action="/configure" method="post">
             <div class="field">
                 <label class="label">APP ID</label>