john 2 rokov pred
rodič
commit
3fb299ff06

+ 1 - 1
ClientPlatform/config/webpack.dev.js

@@ -1,6 +1,6 @@
 const baseConfig = require("./webpack.common");
 const { merge } = require("webpack-merge");
-const mock = require("../mockData/index");
+// const mock = require("../mockData/index");
 module.exports = merge(baseConfig(false), {
   mode: "development",
   devtool: "cheap-module-source-map",

+ 79 - 4
ClientPlatform/src/pages/result/result.vue

@@ -1,6 +1,11 @@
 <template>
   <div class="page-box">
-    <div class="card-box">
+    <div class="print-box">
+      <el-button type="primary" icon="el-icon-printer" @click="print"
+        >打印</el-button
+      >
+    </div>
+    <div class="card-box" id="print">
       <div class="title">
         <h5>Result Details</h5>
       </div>
@@ -14,9 +19,59 @@
         </div>
       </div>
       <div>
-        <img v-if="detail.SC_GRS" :src="detail.SC_GRS" alt="" />
-        <img v-if="detail.OR_GRS" :src="detail.OR_GRS" alt="" />
-        <img v-if="detail.DL_GRS" :src="detail.DL_GRS" alt="" />
+        <el-row>
+          <el-col :span="12"
+            ><img v-if="detail.SC_GRS" :src="detail.SC_GRS" alt=""
+          /></el-col>
+          <el-col :span="12"
+            ><img
+              v-if="detail.SC_GRS_prob_pre"
+              :src="detail.SC_GRS_prob_pre"
+              alt=""
+          /></el-col>
+        </el-row>
+
+        <el-row>
+          <el-col :span="12"
+            ><img v-if="detail.OR_GRS" :src="detail.OR_GRS" alt=""
+          /></el-col>
+          <el-col :span="12"
+            ><img
+              v-if="detail.OR_GRS_prob_pre"
+              :src="detail.OR_GRS_prob_pre"
+              alt=""
+          /></el-col>
+        </el-row>
+
+        <el-row>
+          <el-col :span="12"
+            ><img v-if="detail.DL_GRS" :src="detail.DL_GRS" alt=""
+          /></el-col>
+          <el-col :span="12"
+            ><img
+              v-if="detail.DL_GRS_prob_pre"
+              :src="detail.DL_GRS_prob_pre"
+              alt=""
+          /></el-col>
+        </el-row>
+
+        <el-row>
+          <el-col :span="12"
+            ><img v-if="detail.t_alt_count" :src="detail.t_alt_count" alt=""
+          /></el-col>
+          <el-col :span="12"
+            ><img v-if="detail.t_depth" :src="detail.t_depth" alt=""
+          /></el-col>
+        </el-row>
+
+        <el-row>
+          <el-col :span="12"
+            ><img v-if="detail.t_ref_count" :src="detail.t_ref_count" alt=""
+          /></el-col>
+          <el-col :span="12"
+            ><img v-if="detail.Variant_Type" :src="detail.Variant_Type" alt=""
+          /></el-col>
+        </el-row>
       </div>
     </div>
   </div>
@@ -70,12 +125,32 @@ export default {
       }
       return "正在初始化中";
     },
+    print() {
+      console.log("82 print");
+      // 缓存页面内容
+      const bodyHtml = window.document.body.innerHTML;
+      // 获取要打印的dom
+      const printContentHtml = document.getElementById("print").innerHTML;
+      // 替换页面内容
+      window.document.body.innerHTML = printContentHtml;
+      // 全局打印
+      window.print();
+      // 还原页面内容
+      window.document.body.innerHTML = bodyHtml;
+    },
   },
 };
 </script>
 <style lang="less" scoped>
 .page-box {
   padding: 24px;
+  position: relative;
+
+  .print-box {
+    position: absolute;
+    right: 50px;
+    top: 100px;
+  }
 
   .card-box {
     background-color: rgb(255, 255, 255);

+ 741 - 0
admin_site/celery.log

@@ -0,0 +1,741 @@
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+113113113113113
+3333
+130130130130 SC_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+130130130130 Rdata/94/gene_list.npy
+134134134134134134134
+137137137137137
+4444
+130130130130 DL_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+130130130130 OR_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+113113113113113
+3333
+130130130130 SC_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+130130130130 Rdata/94/gene_list.npy
+134134134134134134134
+137137137137137
+4444
+130130130130 DL_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+130130130130 OR_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+113113113113113
+3333
+130130130130 SC_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+130130130130 Rdata/94/gene_list.npy
+134134134134134134134
+137137137137137
+4444
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+113113113113113
+3333
+130130130130 SC_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+130130130130 Rdata/94/gene_list.npy
+134134134134134134134
+137137137137137
+4444
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+113113113113113
+3333
+130130130130 SC_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+130130130130 Rdata/94/gene_list.npy
+134134134134134134134
+137137137137137
+4444
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+113113113113113
+3333
+130130130130 SC_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+130130130130 Rdata/94/gene_list.npy
+134134134134134134134
+137137137137137
+4444
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+113113113113113
+3333
+130130130130 SC_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+130130130130 Rdata/94/gene_list.npy
+134134134134134134134
+137137137137137
+4444
+130130130130 DL_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+113113113113113
+3333
+130130130130 SC_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+130130130130 Rdata/94/gene_list.npy
+134134134134134134134
+137137137137137
+4444
+130130130130 DL_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+130130130130 OR_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+113113113113113
+3333
+130130130130 SC_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+130130130130 Rdata/94/gene_list.npy
+134134134134134134134
+137137137137137
+4444
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+113113113113113
+3333
+130130130130 SC_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+130130130130 Rdata/94/gene_list.npy
+134134134134134134134
+137137137137137
+4444
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+113113113113113
+3333
+130130130130 SC_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+130130130130 Rdata/94/gene_list.npy
+134134134134134134134
+137137137137137
+4444
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+113113113113113
+3333
+130130130130 SC_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+130130130130 Rdata/94/gene_list.npy
+134134134134134134134
+137137137137137
+4444
+130130130130 DL_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+130130130130 OR_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+113113113113113
+3333
+130130130130 SC_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+130130130130 Rdata/94/gene_list.npy
+134134134134134134134
+137137137137137
+4444
+130130130130 DL_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+130130130130 OR_GRS   gene_list.npy 2
+6666666666 
+797979797979 
+8080808080 
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222
+download/COAD.Rdata
+-----
+download/STAD.Rdata
+-----
+94
+Rdata/94/
+797979
+8383838383
+1111
+8888888
+2222

BIN
admin_site/celerybeat-schedule.db


BIN
admin_site/mysite.sqlite


+ 64 - 19
admin_site/order/tasks.py

@@ -1,6 +1,9 @@
 import json
 import logging
+import time
+
 import matplotlib
+
 matplotlib.use('Agg')
 import pandas as pd
 from pandas.api.types import is_string_dtype
@@ -27,6 +30,7 @@ from celery.utils.log import get_task_logger
 
 logger = get_task_logger(__name__)
 
+
 @shared_task
 def get_AUC(order_id):
     matplotlib.use('Agg')
@@ -85,22 +89,6 @@ def get_AUC(order_id):
         plt.savefig(base_path + name + '.png')
         # plt.show()
 
-    def a_curve(clf, X_test, y_test, name):
-        plt.plot(X_test, y_test, color='darkorange',
-                 lw=2, label='ROC curve (arebody = json.loads(request.body)a = %0.2f)' % auc(fpr_rf, tpr_rf))
-        plt.plot([0, 1], [0, 1], color='navy', lw=2, linestyle='--')
-        plt.xlim([0.0, 1.0])
-        plt.ylim([0.0, 1.05])
-        plt.xlabel('False Positive Rate')
-        plt.ylabel('True Positive Rate')
-        # plt.title('Receiver operating characteristic example')
-        plt.title(name)
-        plt.legend(loc="lower right")
-        # plt.savefig(plt.savefig('figs/savefig_example.png'))
-
-        plt.savefig(base_path + name + '.png')
-
-
     logger.info('797979')
     # 读取非胃癌数据
     data_health = pyreadr.read_r(str(files[0].file_path))  # 'COAD.Rdata'
@@ -124,6 +112,53 @@ def get_AUC(order_id):
     # 计算基因数目
     list_final = gene_list + ['Tumor_Sample_Barcode', 'D']
     data_final = pd.DataFrame(columns=list_final)
+
+    def save_Variant_Type():
+        Variant_Type = data['Variant_Type'].value_counts()
+        # 创建一个条形图
+        plt.bar(Variant_Type.index, Variant_Type.values)
+        # 添加标题和轴标签
+        plt.title('Variant Type Counts')
+        plt.xlabel('Variant Type')
+        plt.ylabel('Count')
+        # 保存图形为 PNG 文件
+        plt.savefig(base_path + 'Variant_Type' + '.png')
+
+    def save_Variant_Type2(name, max_value=100):
+        Variant_Type2 = data[name].value_counts()
+        # 创建一个条形图
+        plt.plot(Variant_Type2.values, Variant_Type2.index)
+        plt.ylim([0.0, max_value])
+        plt.xlim([0.0, len(Variant_Type2.index)])
+        # 添加标题和轴标签
+        plt.title(name)
+        plt.xlabel(name)
+        plt.ylabel('Count')
+        # 保存图形为 PNG 文件
+        plt.savefig(base_path + name + '.png')
+
+    time.sleep(1)
+    save_Variant_Type()
+    time.sleep(1)
+    save_Variant_Type2('t_ref_count', max_value=1000)
+    time.sleep(1)
+    save_Variant_Type2('t_alt_count', max_value=1000)
+    time.sleep(1)
+    save_Variant_Type2('t_depth', max_value=1000)
+    time.sleep(1)
+    # 绘制图像
+    # plt.imshow(data['t_depth'])
+    # 保存为图片文件
+    # plt.savefig(base_path + "t_depth.png", format='png')
+
+    # t_depth
+    #
+    # t_ref_count
+    #
+    # t_alt_count
+    #
+    # n_depth
+
     ind = 0
     for sample in sample_list:
         tempdata = data[data['Tumor_Sample_Barcode'] == sample]
@@ -152,7 +187,7 @@ def get_AUC(order_id):
     logger.info('3333')
     # ROC绘图 SC_GRS方法
     ROC_curve(clf, X_test, y_test, name='SC_GRS')
-    logger.info('130130130130 '+ base_path + 'gene_list.npy')
+    logger.info('130130130130 ' + base_path + 'gene_list.npy')
     # 模型预测,假设data_final是输入数据,注意,data_final已经是处理好对应的基因数目的数据
     # 模型加载
     gene_list = np.load(base_path + 'gene_list.npy')
@@ -165,7 +200,10 @@ def get_AUC(order_id):
     y_pre = clf.predict(X_test)  # 分类结果预测
     prob_pre = clf.predict_proba(X_test)  # 结果概率预测
     logger.info('4444')
-    # logger.info(95, prob_pre)
+    # 绘制图像
+    plt.imshow(prob_pre)
+    # 保存为图片文件
+    plt.savefig(base_path + "SC_GRS_prob_pre.png", format='png')
 
     # -------------------------------------DL_GRS方法-----------------------------------------
     # 模型训练
@@ -189,7 +227,10 @@ def get_AUC(order_id):
     X_test = data_final[gene_list]
     y_pre = clf.predict(X_test)  # 分类结果预测
     prob_pre = clf.predict_proba(X_test)  # 结果概率预测
-    # logger.info(119, prob_pre)
+    # 绘制图像
+    plt.imshow(prob_pre)
+    # 保存为图片文件
+    plt.savefig(base_path + "DL_GRS_prob_pre.png", format='png')
 
     # -------------------------------------OR_GRS方法-----------------------------------------
     # or值计算
@@ -224,6 +265,10 @@ def get_AUC(order_id):
     X_test = (data_final[gene_list] * omega_or).sum(axis=1).values.reshape(-1, 1)
     y_pre = clf.predict(X_test)  # 分类结果预测
     prob_pre = clf.predict_proba(X_test)  # 结果概率预测
+    # 绘制图像
+    plt.imshow(prob_pre)
+    # 保存为图片文件
+    plt.savefig(base_path + "OR_GRS_prob_pre.png", format='png')
     # logger.info(154, prob_pre)
     # 更新order状态
     try:

+ 11 - 16
admin_site/order/views.py

@@ -1,8 +1,6 @@
-from django.core import serializers
 from django.core.files.storage import default_storage
-from django.shortcuts import render, get_object_or_404
+from django.shortcuts import get_object_or_404
 import json
-import logging
 # Create your views here.
 from django.http import HttpResponse, JsonResponse, Http404
 from django.views.decorators.http import require_http_methods
@@ -11,17 +9,13 @@ from order.models import Order as Order_models
 from order.tasks import get_AUC
 from user.models import User as User_models
 from django.utils import timezone
-from datetime import datetime
 from django.db.models import Q
-from django.utils.dateparse import parse_date
 from django.core.paginator import Paginator, EmptyPage
 from files.tasks import del_one_file
 from files.models import Files as Files_models
 import re
 from json.decoder import JSONDecodeError
-from admin_site.utils import setError, setSuccess, orderPersonToDictionary, userPersonToDictionary, char_2_datetime
-from django.contrib.sessions.models import Session
-from django.contrib.auth import get_user_model
+from admin_site.utils import setError, setSuccess, char_2_datetime
 import os
 
 
@@ -52,8 +46,15 @@ def info(request):
         "create_time": order.create_time,
         "update_time": order.update_time,
         "DL_GRS": "http://localhost:8000/order/img/"+ str(order.id) +"/DL_GRS.png",
+        "DL_GRS_prob_pre": "http://localhost:8000/order/img/"+ str(order.id) +"/DL_GRS_prob_pre.png",
         "OR_GRS": "http://localhost:8000/order/img/"+ str(order.id) +"/OR_GRS.png",
-        "SC_GRS": "http://localhost:8000/order/img/"+ str(order.id) +"/SC_GRS.png"
+        "OR_GRS_prob_pre": "http://localhost:8000/order/img/"+ str(order.id) +"/OR_GRS_prob_pre.png",
+        "SC_GRS": "http://localhost:8000/order/img/"+ str(order.id) +"/SC_GRS.png",
+        "SC_GRS_prob_pre": "http://localhost:8000/order/img/"+ str(order.id) +"/SC_GRS_prob_pre.png",
+        "t_alt_count": "http://localhost:8000/order/img/"+ str(order.id) +"/t_alt_count.png",
+        "t_depth": "http://localhost:8000/order/img/"+ str(order.id) +"/t_depth.png",
+        "t_ref_count": "http://localhost:8000/order/img/"+ str(order.id) +"/t_ref_count.png",
+        "Variant_Type": "http://localhost:8000/order/img/"+ str(order.id) +"/Variant_Type.png",
     }
 
     # 返回 JSON 格式的响应
@@ -86,7 +87,7 @@ def img(request):
 @csrf_exempt
 @require_http_methods(["POST"])
 def add(request):
-    # get_AUC(79)
+    # get_AUC(94)
     # return JsonResponse(setSuccess(msg='更新成功', data=True))
     body = json.loads(request.body)
     params = {
@@ -146,12 +147,6 @@ def add(request):
 @require_http_methods(["POST"])
 def update(request):
     return JsonResponse(setSuccess(msg='更新成功', data=True))
-    # body = json.loads(request.body)
-    # if body['status'] == 2:
-    #     body['end_time'] = timezone.now()
-    # Order_models.objects.filter(id=body['id']).update(**body)
-    # return HttpResponse(setSuccess(msg='更新成功', data={}))
-
 
 @csrf_exempt
 @require_http_methods(["POST"])