Skip to content

Commit f18aacb

Browse files
author
张鼎辉
committed
update
1 parent fd2004c commit f18aacb

File tree

7,151 files changed

+893123
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

7,151 files changed

+893123
-0
lines changed

.DS_Store

14 KB
Binary file not shown.

.env

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
APP_ENV=local
2+
APP_DEBUG=true
3+
APP_KEY=G0QS4drRwnzM05C0Yl2v3cjX3yHXOQOf
4+
5+
DB_CONNECTION=mysql
6+
DB_HOST=202.96.35.202
7+
DB_DATABASE=shou
8+
DB_USERNAME=sc
9+
DB_PASSWORD=sc
10+
11+
#DB_CONNECTION=mysql_test
12+
#DB_HOST=10.30.5.42
13+
#DB_PORT=53306
14+
#DB_DATABASE=shouchuang
15+
#DB_USERNAME=root
16+
#DB_PASSWORD=mfalcons2017
17+
18+
19+
20+
TIME_ID=1002
21+
22+
CACHE_DRIVER=file
23+
SESSION_DRIVER=file
24+
QUEUE_DRIVER=sync
25+
26+
REDIS_HOST=127.0.0.1
27+
REDIS_PASSWORD=null
28+
REDIS_PORT=6379
29+
30+
MAIL_DRIVER=smtp
31+
MAIL_HOST=mailtrap.io
32+
MAIL_PORT=2525
33+
MAIL_USERNAME=null
34+
MAIL_PASSWORD=null
35+
MAIL_ENCRYPTION=null
36+
37+
WX_APPID=wx51d60ab14b77461e
38+
WX_APPSECRET=abd6b6c680468abd9a957a75a7653296
39+
WX_TOKEN=af62d9a6a940a98271769c1ec226c1b9
40+
WX_URL=http://shouchuang.sinosspace.com
41+
WX_TEMP=CkHjeiwwZFoMW1q3htX68uQN-MhOPEUbj5e55FUEyZQ

.env.example

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
APP_ENV=local
2+
APP_DEBUG=true
3+
APP_KEY=SomeRandomString
4+
5+
DB_CONNECTION=mysql
6+
DB_HOST=127.0.0.1
7+
DB_DATABASE=homestead
8+
DB_USERNAME=homestead
9+
DB_PASSWORD=secret
10+
11+
CACHE_DRIVER=file
12+
SESSION_DRIVER=file
13+
QUEUE_DRIVER=sync
14+
15+
REDIS_HOST=127.0.0.1
16+
REDIS_PASSWORD=null
17+
REDIS_PORT=6379
18+
19+
MAIL_DRIVER=smtp
20+
MAIL_HOST=mailtrap.io
21+
MAIL_PORT=2525
22+
MAIL_USERNAME=null
23+
MAIL_PASSWORD=null
24+
MAIL_ENCRYPTION=null

.env.sc

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
APP_ENV=local
2+
APP_DEBUG=true
3+
APP_KEY=G0QS4drRwnzM05C0Yl2v3cjX3yHXOQOf
4+
5+
DB_CONNECTION=mysql
6+
DB_HOST=202.96.35.202
7+
DB_DATABASE=shou
8+
DB_USERNAME=sc
9+
DB_PASSWORD=sc
10+
11+
#DB_CONNECTION=mysql_test
12+
#DB_HOST=10.30.5.42
13+
#DB_PORT=53306
14+
#DB_DATABASE=shouchuang
15+
#DB_USERNAME=root
16+
#DB_PASSWORD=mfalcons2017
17+
18+
19+
20+
TIME_ID=1002
21+
22+
CACHE_DRIVER=file
23+
SESSION_DRIVER=file
24+
QUEUE_DRIVER=sync
25+
26+
REDIS_HOST=127.0.0.1
27+
REDIS_PASSWORD=null
28+
REDIS_PORT=6379
29+
30+
MAIL_DRIVER=smtp
31+
MAIL_HOST=mailtrap.io
32+
MAIL_PORT=2525
33+
MAIL_USERNAME=null
34+
MAIL_PASSWORD=null
35+
MAIL_ENCRYPTION=null
36+
37+
WX_APPID=wx51d60ab14b77461e
38+
WX_APPSECRET=abd6b6c680468abd9a957a75a7653296
39+
WX_TOKEN=af62d9a6a940a98271769c1ec226c1b9
40+
WX_URL=http://shouchuang.sinosspace.com
41+
WX_TEMP=CkHjeiwwZFoMW1q3htX68uQN-MhOPEUbj5e55FUEyZQ

.gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* text=auto
2+
*.css linguist-vendored
3+
*.less linguist-vendored

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.idea/

@

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Merge branch 'develop' of 10.30.5.41:ShouChuang/php into develop
2+
3+
# Please enter a commit message to explain why this merge is necessary,
4+
# especially if it merges an updated upstream into a topic branch.
5+
#
6+
# Lines starting with '#' will be ignored, and an empty message aborts
7+
# the commit.

MP_verify_4FUFP5TyESXCB2Ak.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
4FUFP5TyESXCB2Ak

README.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
## Laravel PHP Framework
2+
3+
[![Build Status](https://travis-ci.org/laravel/framework.svg)](https://travis-ci.org/laravel/framework)
4+
[![Total Downloads](https://poser.pugx.org/laravel/framework/d/total.svg)](https://packagist.org/packages/laravel/framework)
5+
[![Latest Stable Version](https://poser.pugx.org/laravel/framework/v/stable.svg)](https://packagist.org/packages/laravel/framework)
6+
[![Latest Unstable Version](https://poser.pugx.org/laravel/framework/v/unstable.svg)](https://packagist.org/packages/laravel/framework)
7+
[![License](https://poser.pugx.org/laravel/framework/license.svg)](https://packagist.org/packages/laravel/framework)
8+
9+
Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as authentication, routing, sessions, queueing, and caching.
10+
11+
Laravel is accessible, yet powerful, providing powerful tools needed for large, robust applications. A superb inversion of control container, expressive migration system, and tightly integrated unit testing support give you the tools you need to build any application with which you are tasked.
12+
13+
## Official Documentation
14+
15+
Documentation for the framework can be found on the [Laravel website](http://laravel.com/docs).
16+
17+
## Contributing
18+
19+
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](http://laravel.com/docs/contributions).
20+
21+
## Security Vulnerabilities
22+
23+
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell at [email protected]. All security vulnerabilities will be promptly addressed.
24+
25+
### License
26+
27+
The Laravel framework is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

app/.DS_Store

10 KB
Binary file not shown.

app/A_project.php

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace App;
4+
5+
use Illuminate\Database\Eloquent\Model;
6+
7+
class A_project extends Model
8+
{
9+
protected $table = 'a_projects';
10+
protected $primaryKey='id';
11+
public $timestamps=false;
12+
}

app/Admin.php

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
3+
namespace App;
4+
5+
use Illuminate\Database\Eloquent\Model;
6+
7+
class Admin extends Model
8+
{
9+
protected $table = 'admins';
10+
protected $primaryKey='id';
11+
public $timestamps=false;
12+
}

app/AppointmentType.php

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
/**
3+
* Created by PhpStorm.
4+
* User: zhangdinghui
5+
* Date: 2017/11/6
6+
* Time: 下午1:18
7+
*/
8+
9+
namespace App;
10+
11+
12+
use Illuminate\Database\Eloquent\Model;
13+
use Illuminate\Support\Facades\DB;
14+
15+
class AppointmentType extends Model
16+
{
17+
18+
protected $table = 'appointment_type';
19+
protected $primaryKey='id';
20+
public $timestamps=false;
21+
22+
23+
24+
}

app/Bank.php

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<?php
2+
3+
namespace App;
4+
5+
use Illuminate\Database\Eloquent\Model;
6+
7+
class Bank extends Model
8+
{
9+
protected $table = 'banks';
10+
protected $primaryKey='id';
11+
public $timestamps=false;
12+
13+
14+
15+
public static function returnBank($pay_bank_id){
16+
$pay_bank = '';
17+
switch ($pay_bank_id) {
18+
case 0:
19+
$pay_bank = "请选择贷款银行";
20+
break;
21+
case 1:
22+
$pay_bank = "北京银行复兴支行";
23+
break;
24+
case 2:
25+
$pay_bank = "兴业银行望京支行";
26+
break;
27+
case 3:
28+
$pay_bank = "中信银行观湖国际支行";
29+
break;
30+
case 4:
31+
$pay_bank = "杭州银行东城支行";
32+
break;
33+
case 5:
34+
$pay_bank = "中国农业银行";
35+
break;
36+
case 6:
37+
$pay_bank = "公积金兴丰苑";
38+
break;
39+
case 7:
40+
$pay_bank = "公积金欣思达";
41+
break;
42+
case 8:
43+
$pay_bank = "公积金阳光新桥";
44+
break;
45+
case 9:
46+
$pay_bank = "其他银行";
47+
break;
48+
case 10:
49+
$pay_bank = "渤海银行中关村支行";
50+
break;
51+
case 11:
52+
$pay_bank = "交通银行东单支行";
53+
break;
54+
case 12:
55+
$pay_bank = "建设银行安慧支行";
56+
break;
57+
case 13:
58+
$pay_bank = "北京银行太平桥支行";
59+
break;
60+
case 14:
61+
$pay_bank = "广发银行北京分行";
62+
break;
63+
//2017-05-12 新增银行农业银行朝东支行;农业银行石景山支行;农业银行顺义支行;建设银行长安支行;
64+
case 15:
65+
$pay_bank = "农业银行朝东支行";
66+
break;
67+
case 16:
68+
$pay_bank = "农业银行石景山支行";
69+
break;
70+
case 17:
71+
$pay_bank = "农业银行顺义支行";
72+
break;
73+
case 18:
74+
$pay_bank = "建设银行长安支行";
75+
break;
76+
}
77+
return $pay_bank;
78+
}
79+
80+
}

app/Console/Commands/Inspire.php

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
namespace App\Console\Commands;
4+
5+
use Illuminate\Console\Command;
6+
use Illuminate\Foundation\Inspiring;
7+
8+
class Inspire extends Command
9+
{
10+
/**
11+
* The name and signature of the console command.
12+
*
13+
* @var string
14+
*/
15+
protected $signature = 'inspire';
16+
17+
/**
18+
* The console command description.
19+
*
20+
* @var string
21+
*/
22+
protected $description = 'Display an inspiring quote';
23+
24+
/**
25+
* Execute the console command.
26+
*
27+
* @return mixed
28+
*/
29+
public function handle()
30+
{
31+
$this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
32+
}
33+
}

app/Console/Commands/Key.php

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?php
2+
3+
namespace App\Console\Commands;
4+
5+
use Illuminate\Console\Command;
6+
use App\Reserve;
7+
use DB;
8+
use App\Number;
9+
use response;
10+
class Key extends Command
11+
{
12+
/**
13+
* The name and signature of the console command.
14+
*
15+
* @var string
16+
*/
17+
protected $signature = 'key';
18+
19+
/**
20+
* The console command description.
21+
*
22+
* @var string
23+
*/
24+
protected $description = 'one key guohao';
25+
26+
/**
27+
* Create a new command instance.
28+
*
29+
* @return void
30+
*/
31+
public function __construct()
32+
{
33+
parent::__construct();
34+
}
35+
36+
/**
37+
* Execute the console command.
38+
*
39+
* @return mixed
40+
*/
41+
public function handle()
42+
{
43+
//
44+
$time=date('H');
45+
$date=date('Y-m-d');
46+
$data=[];
47+
if($time>=20){
48+
//$reserves=Reserve::where('date',$date)->whereIn('progress',[1,3])->get();
49+
$reserves=Reserve::where('id',354)->whereIn('progress',[1,3])->get();
50+
foreach($reserves as $k=>$v){
51+
$v->progress=2;
52+
$v->status=2;
53+
$v->save();
54+
$number=Number::where('reserve_id',$v->id)->where('number_class',1)->first();
55+
if($number){
56+
$number->number_push=1;
57+
$number->number_status=0;
58+
$number->save();
59+
}
60+
$data[$k]=['status'=>"$v->id 过号成功"];
61+
}
62+
if($data){
63+
response::jsonEncode(200,'success',$data);
64+
65+
}else{
66+
response::jsonEncode(401,'error',['status'=>'没有预约要过号']);
67+
}
68+
}else{
69+
response::jsonEncode(400,'error',['status'=>'没有到时间']);
70+
71+
}
72+
}
73+
}

0 commit comments

Comments
 (0)