Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Compass
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zong
Compass
Commits
29ac888e
Commit
29ac888e
authored
Feb 17, 2020
by
biao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e95245a4
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
56 additions
and
3 deletions
+56
-3
compass_db_schema.txt
doc/DB/compass_db_schema.txt
+2
-1
compass_db_schema.xlsx
doc/DB/compass_db_schema.xlsx
+0
-0
小程序文件命名以及接口调用说明.xlsx
doc/小程序文件命名以及接口调用说明.xlsx
+0
-0
接口文档 V1.0.xls
doc/接口文档 V1.0.xls
+0
-0
CircleDat.inc
src/cn/compass/entity/CircleDat.inc
+4
-1
compass_include.inc
src/settings/compass_include.inc
+0
-1
ajax_get_area_info.php
src/user/if/ajax_get_area_info.php
+48
-0
ajax_get_user_media_history.php
src/user/if/ajax_get_user_media_history.php
+2
-0
No files found.
doc/DB/compass_db_schema.txt
View file @
29ac888e
...
...
@@ -152,7 +152,8 @@ CREATE TABLE IF NOT EXISTS circle_dat(
title varchar(64) NOT NULL,
member_count int8 NOT NULL DEFAULT '0',
need_check tinyint(1) NOT NULL DEFAULT '0',
comment text NOT NULL,
front_image text,
comment text,
longitude text NOT NULL,
latitude text NOT NULL,
address text NOT NULL,
...
...
doc/DB/compass_db_schema.xlsx
View file @
29ac888e
No preview for this file type
doc/小程序文件命名以及接口调用说明.xlsx
View file @
29ac888e
No preview for this file type
doc/接口文档 V1.0.xls
View file @
29ac888e
No preview for this file type
src/cn/compass/entity/CircleDat.inc
View file @
29ac888e
...
...
@@ -11,6 +11,7 @@ class CircleDat extends CompassDynamicData
var
$title
;
var
$member_count
;
var
$need_check
;
var
$front_image
;
var
$comment
;
var
$longitude
;
var
$latitude
;
...
...
@@ -31,6 +32,7 @@ class CircleDat extends CompassDynamicData
$this
->
title
=
$record
[
"title"
];
$this
->
member_count
=
$record
[
"member_count"
];
$this
->
need_check
=
$record
[
"need_check"
];
$this
->
front_image
=
$record
[
"front_image"
];
$this
->
comment
=
$record
[
"comment"
];
$this
->
longitude
=
$record
[
"longitude"
];
$this
->
latitude
=
$record
[
"latitude"
];
...
...
@@ -103,7 +105,8 @@ class CircleDat extends CompassDynamicData
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"title"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"member_count"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"need_check"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"comment"
);
ParamUtil
::
copyObj2ArrayNullField
(
$v_param
,
$this
,
"front_image"
);
ParamUtil
::
copyObj2ArrayNullField
(
$v_param
,
$this
,
"comment"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"longitude"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"latitude"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"address"
);
...
...
src/settings/compass_include.inc
View file @
29ac888e
...
...
@@ -29,7 +29,6 @@ require_once(COMPASS_LIB_ROOT . "/cn/compass/entity/UserCommentDat.inc");
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/UserFavoriteDat.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/UserMst.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/UserPointLog.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/UserSignDat.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/MediaTagDat.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/UserMediaDat.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/SystemConstDat.inc"
);
...
...
src/user/if/ajax_get_area_info.php
0 → 100644
View file @
29ac888e
<?php
// 获取证书列表
require_once
(
"../user_include.inc"
);
ErrorLogger
::
doOutput
(
"Compass...ajax_get_certificates.php....Start."
,
0
);
//获取参数
$page
=
ParamUtil
::
getRequestNumber
(
"page"
,
0
);
//每页显示条数
$rowCount
=
10
;
$result
=
array
();
$offset
=
$page
*
$rowCount
;
//检索数据库
$param
=
array
();
$param
[
'delete_flg'
]
=
false
;
$certificateList
=
CertificateMst
::
getList
(
$param
,
'display_order'
,
'desc'
,
$offset
,
$rowCount
);
$allCount
=
CertificateMst
::
getListCount
(
$param
);
//接口返回数据
$result
[
"allCount"
]
=
$allCount
;
$result
[
"page"
]
=
$page
;
$result
[
"rowCount"
]
=
$rowCount
;
$result
[
"list"
]
=
$certificateList
;
ErrorLogger
::
doOutput
(
"Compass...ajax_get_certificates.php....End."
,
0
);
//返回结果
responseOK
(
$result
);
function
responseNG
(
$result
)
{
$result
=
array
(
"status"
=>
"NG"
,
"result"
=>
$result
);
print
json_encode
(
$result
);
exit
;
}
function
responseOK
(
$result
)
{
$result
=
array
(
"status"
=>
"OK"
,
"result"
=>
$result
);
print
json_encode
(
$result
);
exit
;
}
?>
\ No newline at end of file
src/user/if/ajax_get_user_media_history.php
View file @
29ac888e
...
...
@@ -36,9 +36,11 @@ $userMediaList = array();
if
(
!
empty
(
$tmpUserMediaList
))
{
foreach
(
$tmpUserMediaList
as
$tmpUserMediaDat
)
{
$tmpMediaDat
=
CourseMediaDat
::
getById
(
$tmpUserMediaDat
->
media_id
);
if
(
!
empty
(
$tmpMediaDat
))
{
$tmp
=
Array
(
"courseId"
=>
$tmpMediaDat
->
course_id
,
"mediaId"
=>
$tmpMediaDat
->
id
,
"title"
=>
$tmpMediaDat
->
title
,
"media"
=>
$tmpMediaDat
->
media
);
$userMediaList
[]
=
$tmp
;
}
}
}
//接口返回数据
...
...
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