WIN-2308041133\Administrator 8 月之前
父节点
当前提交
f443f4d4d9
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 1
      application/api/controller/Pay.php
  2. 1 1
      public/assets/js/backend/platform/videoshare.js

+ 2 - 1
application/api/controller/Pay.php

@@ -653,12 +653,13 @@ class Pay extends Api
 
 // 计算三年后的时间戳
         $threeYearsLater = strtotime('+3 years', $now);
-
+        $vname = Db::name('videolist')->where('id', input('vid'))->value('name');
         $total_price = $price * $num;
         $up = [
             'type' => 1,
             'uid' => input('uid'),
             'vid' => input('vid'),
+            'vname' => $vname,
             'num' => input('num'),
             'price' => $price,
             'total_price' => $total_price,

+ 1 - 1
public/assets/js/backend/platform/videoshare.js

@@ -10,7 +10,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                     // edit_url: 'platform/videoshare/edit',
                     del_url: 'platform/videoshare/del',
                     // multi_url: 'platform/videoshare/multi',
-                    table: 'video_platform_videoshare',
+                    table: 'video_share',
                 }
             });