WIN-2308041133\Administrator 8 місяців тому
батько
коміт
f443f4d4d9

+ 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',
                 }
             });