Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bds
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
bds
Commits
bedf5a96
Commit
bedf5a96
authored
Feb 29, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql
parent
3679c779
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
15 deletions
+37
-15
Application/Common/Conf/config.php
+8
-4
Application/User/Conf/config.php
+3
-1
aliapay/notify_url.php
+11
-5
alipay/notify_url.php
+11
-5
git.php
+4
-0
No files found.
Application/Common/Conf/config.php
View file @
bedf5a96
...
@@ -42,11 +42,15 @@ return array(
...
@@ -42,11 +42,15 @@ return array(
/* 数据库配置 */
/* 数据库配置 */
'DB_TYPE'
=>
'mysqli'
,
// 数据库类型
'DB_TYPE'
=>
'mysqli'
,
// 数据库类型
'DB_HOST'
=>
'localhost'
,
// 服务器地址
// 'DB_HOST' => 'localhost', // 服务器地址
'DB_NAME'
=>
'bds'
,
// 数据库名
// 'DB_USER' => 'root', // 用户名
// 'DB_PWD' => '', // 密码
'DB_HOST'
=>
'47.108.181.205'
,
// 服务器地址
'DB_USER'
=>
'root'
,
// 用户名
'DB_USER'
=>
'root'
,
// 用户名
//'DB_PWD' => 'y17y175465y17', // 密码
'DB_PWD'
=>
'e8T4u3to2GurjjEH'
,
// 密码
'DB_PWD'
=>
'root'
,
// 密码
'DB_NAME'
=>
'bds'
,
// 数据库名
'DB_PORT'
=>
'3306'
,
// 端口
'DB_PORT'
=>
'3306'
,
// 端口
'DB_PREFIX'
=>
'yi_'
,
// 数据库表前缀
'DB_PREFIX'
=>
'yi_'
,
// 数据库表前缀
...
...
Application/User/Conf/config.php
View file @
bedf5a96
...
@@ -15,5 +15,7 @@
...
@@ -15,5 +15,7 @@
define
(
'UC_APP_ID'
,
1
);
//应用ID
define
(
'UC_APP_ID'
,
1
);
//应用ID
define
(
'UC_API_TYPE'
,
'Model'
);
//可选值 Model / Service
define
(
'UC_API_TYPE'
,
'Model'
);
//可选值 Model / Service
define
(
'UC_AUTH_KEY'
,
'hS1nQ$:i,|y[}*-+XKDFsP~_Z3TR=;o7Ok{IJU6z'
);
//加密KEY
define
(
'UC_AUTH_KEY'
,
'hS1nQ$:i,|y[}*-+XKDFsP~_Z3TR=;o7Ok{IJU6z'
);
//加密KEY
define
(
'UC_DB_DSN'
,
'mysqli://root:root@localhost:3306/bds'
);
// 数据库连接,使用Model方式调用API必须配置此项
//define('UC_DB_DSN', 'mysqli://root:@localhost:3306/bds'); // 数据库连接,使用Model方式调用API必须配置此项
define
(
'UC_DB_DSN'
,
'mysqli://root:e8T4u3to2GurjjEH@47.108.181.205:3306/bds'
);
// 数据库连接,使用Model方式调用API必须配置此项
define
(
'UC_TABLE_PREFIX'
,
'yi_'
);
// 数据表前缀,使用Model方式调用API必须配置此项
define
(
'UC_TABLE_PREFIX'
,
'yi_'
);
// 数据表前缀,使用Model方式调用API必须配置此项
aliapay/notify_url.php
View file @
bedf5a96
...
@@ -19,10 +19,17 @@ require_once("alipay.config.php");
...
@@ -19,10 +19,17 @@ require_once("alipay.config.php");
require_once
(
"lib/alipay_notify.class.php"
);
require_once
(
"lib/alipay_notify.class.php"
);
/* 数据库配置 */
/* 数据库配置 */
$config
[
'DB_TYPE'
]
=
'mysqli'
;
// 数据库类型
$config
[
'DB_TYPE'
]
=
'mysqli'
;
// 数据库类型
$config
[
'DB_HOST'
]
=
'localhost'
;
// 服务器地址
$config
[
'DB_NAME'
]
=
'yhct'
;
// 数据库名
//$config['DB_HOST']='localhost';// 服务器地址
//$config['DB_USER']='root';// 用户名
//$config['DB_PWD']='';// 密码
$config
[
'DB_HOST'
]
=
'47.108.181.205'
;
// 服务器地址
$config
[
'DB_USER'
]
=
'root'
;
// 用户名
$config
[
'DB_USER'
]
=
'root'
;
// 用户名
$config
[
'DB_PWD'
]
=
'root'
;
// 密码
$config
[
'DB_PWD'
]
=
'e8T4u3to2GurjjEH'
;
// 密码
$config
[
'DB_NAME'
]
=
'yhct'
;
// 数据库名
$config
[
'DB_PORT'
]
=
'3306'
;
// 端口
$config
[
'DB_PORT'
]
=
'3306'
;
// 端口
$config
[
'DB_PREFIX'
]
=
'yi_'
;
// 数据库表前缀
$config
[
'DB_PREFIX'
]
=
'yi_'
;
// 数据库表前缀
...
@@ -120,4 +127,4 @@ function writeLog($msg, $file) {
...
@@ -120,4 +127,4 @@ function writeLog($msg, $file) {
$time
=
date
(
'Y-m-d H:i:s'
);
$time
=
date
(
'Y-m-d H:i:s'
);
error_log
(
"
\r\n
[
$time
]
{
$msg
}
\r\n
"
,
3
,
$file
);
error_log
(
"
\r\n
[
$time
]
{
$msg
}
\r\n
"
,
3
,
$file
);
}
}
?>
?>
\ No newline at end of file
alipay/notify_url.php
View file @
bedf5a96
...
@@ -18,10 +18,17 @@ require_once "alipay.config.php";
...
@@ -18,10 +18,17 @@ require_once "alipay.config.php";
require_once
"lib/alipay_notify.class.php"
;
require_once
"lib/alipay_notify.class.php"
;
/* 数据库配置 */
/* 数据库配置 */
$config
[
'DB_TYPE'
]
=
'mysqli'
;
// 数据库类型
$config
[
'DB_TYPE'
]
=
'mysqli'
;
// 数据库类型
$config
[
'DB_HOST'
]
=
'localhost'
;
// 服务器地址
$config
[
'DB_NAME'
]
=
'yhct'
;
// 数据库名
//$config['DB_HOST']='localhost';// 服务器地址
//$config['DB_USER']='root';// 用户名
//$config['DB_PWD']='';// 密码
$config
[
'DB_HOST'
]
=
'47.108.181.205'
;
// 服务器地址
$config
[
'DB_USER'
]
=
'root'
;
// 用户名
$config
[
'DB_USER'
]
=
'root'
;
// 用户名
$config
[
'DB_PWD'
]
=
'root'
;
// 密码
$config
[
'DB_PWD'
]
=
'e8T4u3to2GurjjEH'
;
// 密码
$config
[
'DB_NAME'
]
=
'yhct'
;
// 数据库名
$config
[
'DB_PORT'
]
=
'3306'
;
// 端口
$config
[
'DB_PORT'
]
=
'3306'
;
// 端口
$config
[
'DB_PREFIX'
]
=
'yi_'
;
// 数据库表前缀
$config
[
'DB_PREFIX'
]
=
'yi_'
;
// 数据库表前缀
...
@@ -145,4 +152,4 @@ function writeLog($msg, $file) {
...
@@ -145,4 +152,4 @@ function writeLog($msg, $file) {
error_log
(
"
\r\n
[
$time
]
{
$msg
}
\r\n
"
,
3
,
$path
.
'/'
.
$file
);
error_log
(
"
\r\n
[
$time
]
{
$msg
}
\r\n
"
,
3
,
$path
.
'/'
.
$file
);
}
}
?>
?>
\ No newline at end of file
git.php
0 → 100755
View file @
bedf5a96
<?php
exec
(
'cd /app/bds && /usr/bin/git pull 2>&1'
,
$a
,
$b
);
var_dump
(
$a
,
$b
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment