Browse Source

抽取平台

zhangjinkun 6 years ago
parent
commit
a0717030be

+ 3 - 2
src/jy/router/router.go

@@ -6,7 +6,8 @@ import (
 	"time"
 
 	"github.com/gin-contrib/sessions"
-	"github.com/gin-contrib/sessions/memstore"
+	"github.com/gin-contrib/sessions/cookie"
+	//"github.com/gin-contrib/sessions/memstore"
 	"github.com/gin-gonic/gin"
 	"gopkg.in/mgo.v2/bson"
 )
@@ -14,7 +15,7 @@ import (
 var Router = gin.Default()
 
 func init() {
-	store := memstore.NewStore([]byte("jy_data_extract"))
+	store := cookie.NewStore([]byte("jy_data_extract"))
 	Router.Use(sessions.Sessions("mysession", store))
 	gob.Register(&map[string]interface{}{})
 	gob.Register(&[]map[string]interface{}{})

+ 1 - 1
src/web/templates/admin/check_luaback.html

@@ -47,7 +47,7 @@
 		</form>
 		
 		<h1><div class="btn-center">
-			<button type="button" class="btn btn-primary" onclick="check()">测试</button>
+			<button type="button" class="btn btn-success" onclick="check()">测试</button>
 			<button type="button" class="btn btn-primary" onclick="save()">保存</button>
 		</div></h1>
 </section>

+ 1 - 1
src/web/templates/admin/check_luacore.html

@@ -48,7 +48,7 @@
 		</form>
 		
 		<h1><div class="btn-center">
-			<button type="button" class="btn btn-primary" onclick="check()">测试</button>
+			<button type="button" class="btn btn-success" onclick="check()">测试</button>
 			<button type="button" class="btn btn-primary" onclick="save()">保存</button>
 		</div></h1>
 </section>

+ 1 - 1
src/web/templates/admin/check_luacoreback.html

@@ -49,7 +49,7 @@
 		</form>
 		
 		<h1><div class="btn-center">
-			<button type="button" class="btn btn-primary" onclick="check()">测试</button>
+			<button type="button" class="btn btn-success" onclick="check()">测试</button>
 			<button type="button" class="btn btn-primary" onclick="save()">保存</button>
 		</div></h1>
 </section>

+ 1 - 1
src/web/templates/admin/check_luacorepre.html

@@ -48,7 +48,7 @@
 		</form>
 		
 		<h1><div class="btn-center">
-			<button type="button" class="btn btn-primary" onclick="check()">测试</button>
+			<button type="button" class="btn btn-success" onclick="check()">测试</button>
 			<button type="button" class="btn btn-primary" onclick="save()">保存</button>
 		</div></h1>
 </section>

+ 1 - 1
src/web/templates/admin/check_luapre.html

@@ -46,7 +46,7 @@
 		</form>
 		
 		<h1><div class="btn-center">
-			<button type="button" class="btn btn-primary" onclick="check()">测试</button>
+			<button type="button" class="btn btn-success" onclick="check()">测试</button>
 			<button type="button" class="btn btn-primary" onclick="save()">保存</button>
 		</div></h1>
 </section>