Skip to content

Commit e64d3f4

Browse files
committed
update: database
1 parent 3932877 commit e64d3f4

File tree

3 files changed

+246
-92
lines changed

3 files changed

+246
-92
lines changed

laravel/database/migrations/2019_03_08_214658_create_permissions_and_roles.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ public function up()
2323
$table->increments('id');
2424
$table->string('name');
2525
$table->string('route')->default('');
26+
$table->string('view')->default('');
27+
$table->boolean('hidden')->default(1);
2628
$table->timestamps();
2729
$table->index('route');
2830
});

laravel/database/seeds/ApiParamTableSeeder.php

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function run()
5353
'method' => 'get',
5454
'url' => 'http://v.juhe.cn/mobile_consume/query',
5555
'param' => 'mobile',
56-
'result' => '',
56+
'result' => 'isp,code,desc',
5757
'is_need' => 0,
5858
'state' => 1,
5959
'created_at' => '2019-01-29 20:10:08',
@@ -67,8 +67,8 @@ public function run()
6767
'method' => 'get',
6868
'url' => 'http://v.juhe.cn/verifybankcard3/query.php',
6969
'param' => 'idcard,realname,bankcard',
70-
'result' => '',
71-
'is_need' => 1,
70+
'result' => 'res,message',
71+
'is_need' => 0,
7272
'state' => 1,
7373
'created_at' => '2019-01-29 20:10:08',
7474
'updated_at' => '2019-01-29 20:15:10',
@@ -81,8 +81,8 @@ public function run()
8181
'method' => 'get',
8282
'url' => 'http://v.juhe.cn/verifybankcard4/query.php',
8383
'param' => 'idcard,realname,bankcard,mobile',
84-
'result' => '',
85-
'is_need' => 1,
84+
'result' => 'res,message',
85+
'is_need' => 0,
8686
'state' => 1,
8787
'created_at' => '2019-01-29 20:10:08',
8888
'updated_at' => '2019-01-29 20:15:10',
@@ -119,7 +119,7 @@ public function run()
119119
array (
120120
'id' => 8,
121121
'website' => 'https://www.juhe.cn/docs/api/id/354',
122-
'name' => '手机状态查询',
122+
'name' => '354 手机状态查询',
123123
'method' => 'get',
124124
'url' => 'http://apis.juhe.cn/invalid_number/query',
125125
'param' => 'mobiles',
@@ -129,6 +129,20 @@ public function run()
129129
'created_at' => '2019-02-27 06:06:23',
130130
'updated_at' => '2019-02-27 06:06:23',
131131
),
132+
8 =>
133+
array (
134+
'id' => 9,
135+
'website' => 'https://www.juhe.cn/docs/api/id/103',
136+
'name' => '103 身份证实名',
137+
'method' => 'get',
138+
'url' => 'http://op.juhe.cn/idcard/query',
139+
'param' => 'realname,idcard',
140+
'result' => 'res',
141+
'is_need' => 0,
142+
'state' => 1,
143+
'created_at' => '2019-03-15 11:27:18',
144+
'updated_at' => '2019-03-15 11:27:18',
145+
),
132146
));
133147

134148

0 commit comments

Comments
 (0)