Your Name 2 years ago
parent
commit
e757b0a87a
2 changed files with 14 additions and 1 deletions
  1. 13 1
      learn/active/database/info.php
  2. 1 0
      learn/active/src/Api.php

+ 13 - 1
learn/active/database/info.php

@@ -81,7 +81,19 @@ return array
             'key'       => '1',
             // 'place'     => '759*562',
         ),
-        
+
+        'mobile'      => array
+        (
+            'type'      => 'bigint-11',
+            'name'      => '客服电话',
+            'default'   => '',
+            'desc'      => '请输入客服电话',
+            'match'     => Dever::rule('mobile'),
+            'update'    => 'text',
+            //'search'    => 'fulltext',
+            'list'      => true,
+        ),
+
         'desc'      => array
         (
             'type'      => 'varchar-500',

+ 1 - 0
learn/active/src/Api.php

@@ -165,6 +165,7 @@ Class Api extends Core {
 			if($data['info']['status'] == 6){
 				$data['info']['refund_cash'] = $data['info']['price'];
 			}
+			$data['info']['mobile'] = $active['mobile'];
 		}
 		return $data;
 	}