Browse Source

换小程序账号

lizhen_gitee 8 months ago
parent
commit
ad4c39a263

+ 1 - 1
application/api/controller/Demo.php

@@ -3,7 +3,7 @@
 namespace app\api\controller;
 
 use app\common\controller\Api;
-
+use think\Db;
 /**
  * 示例接口
  */

+ 6 - 1
application/config.php

@@ -332,11 +332,16 @@ return [
             'website' => '全站基础配置',
     ],
 
-    //微信小程序
+    //微信小程序 绿源
     'wxMiniProgram' => [
         'appid' => 'wxbc902cf8a5354c32',
         'secret' => '912822fc14fc9f7ca0b0d8294d26f113',
     ],
+    //微信小程序 客户正式
+    'wxMiniProgram' => [
+        'appid' => 'wx146cada227d59529',
+        'secret' => 'af19015df9a10eaaaf3ab8549f4ac028',
+    ],
 
     //默认头像
     'default_avatar' => '',

+ 4 - 4
public/assets/js/backend/exam/grade.js

@@ -45,12 +45,12 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                         {field: 'id', title: __('Id')},
                         {field: 'cate_id', title: __('Cate_id'), visible: false},
                         {field: 'cate.name', title: __('Cate_id'), operate: false},
-                        {field: 'user_id', title: __('User_id'), visible: false},
+                        {field: 'user_id', title: __('User_id')},
                         {field: 'user.nickname', title: __('交卷人昵称'), operate: 'LIKE'},
-                        {field: 'user.mobile', title: __('交卷人手机'), operate: 'LIKE'},
-                        {field: 'paper_id', title: __('Paper_id'), visible: false},
+//                        {field: 'user.mobile', title: __('交卷人手机'), operate: 'LIKE'},
+                        {field: 'paper_id', title: __('Paper_id')},
                         {field: 'paper.title', title: __('Paper.title'), operate: false},
-                        {field: 'score', title: __('Score'), operate: false},
+                        {field: 'score', title: __('Score'), operate: false,sortable:true },
                         {
                             field: 'is_pass', title: __('Is_pass'), searchList: {"1": __('及格'), "0": __('不及格')},
                             formatter: Table.api.formatter.normal