Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
token
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
wallet
token
Commits
15ec0f4e
Commit
15ec0f4e
authored
Oct 31, 2018
by
ZhuChunYang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增原生登录链接
parent
7b8bde7c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
22 deletions
+33
-22
ApplicationController.php
backend/controllers/ApplicationController.php
+2
-2
CoinApplicationForm.php
backend/models/coin/CoinApplicationForm.php
+18
-16
add.php
backend/views/application/add.php
+6
-0
edit.php
backend/views/application/edit.php
+6
-0
ApplicationBusiness.php
common/business/ApplicationBusiness.php
+1
-1
LotteryService.php
common/service/chain33/LotteryService.php
+0
-3
No files found.
backend/controllers/ApplicationController.php
View file @
15ec0f4e
...
...
@@ -50,7 +50,7 @@ class ApplicationController extends BaseController
if
(
Yii
::
$app
->
request
->
isPost
){
Yii
::
$app
->
response
->
format
=
'json'
;
$category_id
=
Yii
::
$app
->
request
->
get
(
'category_id'
);
$fields
=
[
'category_id'
,
'name'
,
'sort'
,
'icon'
,
'type'
,
'native_url'
,
'h5_url'
,
'android_url'
,
'ios_url'
,
'app_store_url'
,
'advertise'
,
'description'
,
'redirect_type'
];
$fields
=
[
'category_id'
,
'name'
,
'sort'
,
'icon'
,
'type'
,
'native_url'
,
'
native_login_url'
,
'
h5_url'
,
'android_url'
,
'ios_url'
,
'app_store_url'
,
'advertise'
,
'description'
,
'redirect_type'
];
$params
=
array_merge
(
Yii
::
$app
->
request
->
post
(),[
'category_id'
=>
$category_id
]);
$params
=
$this
->
initParams
(
$params
,
$fields
);
$coin_applicateion_form
=
new
CoinApplicationForm
();
...
...
@@ -70,7 +70,7 @@ class ApplicationController extends BaseController
{
if
(
Yii
::
$app
->
request
->
isPost
)
{
Yii
::
$app
->
response
->
format
=
'json'
;
$fields
=
[
'category_id'
,
'id'
,
'name'
,
'sort'
,
'icon'
,
'type'
,
'native_url'
,
'h5_url'
,
'android_url'
,
'ios_url'
,
'app_store_url'
,
'advertise'
,
'description'
,
'redirect_type'
];
$fields
=
[
'category_id'
,
'id'
,
'name'
,
'sort'
,
'icon'
,
'type'
,
'native_url'
,
'
native_login_url'
,
'
h5_url'
,
'android_url'
,
'ios_url'
,
'app_store_url'
,
'advertise'
,
'description'
,
'redirect_type'
];
$params
=
$this
->
initParams
(
Yii
::
$app
->
request
->
post
(),
$fields
);
$coin_applicateion_form
=
new
CoinApplicationForm
();
$coin_applicateion_form
->
setScenario
(
CoinApplicationForm
::
SCENARIO_EDIT
);
...
...
backend/models/coin/CoinApplicationForm.php
View file @
15ec0f4e
...
...
@@ -24,6 +24,7 @@ class CoinApplicationForm extends BaseForm
public
$sort
;
public
$type
;
public
$native_url
;
public
$native_login_url
;
public
$h5_url
;
public
$android_url
;
public
$ios_url
;
...
...
@@ -36,8 +37,8 @@ class CoinApplicationForm extends BaseForm
public
function
scenarios
()
{
return
[
self
::
SCENARIO_ADD
=>
[
'category_id'
,
'name'
,
'sort'
,
'icon'
,
'type'
,
'native_url'
,
'h5_url'
,
'android_url'
,
'ios_url'
,
'app_store_url'
,
'advertise'
,
'description'
,
'redirect_type'
],
self
::
SCENARIO_EDIT
=>
[
'category_id'
,
'id'
,
'name'
,
'sort'
,
'icon'
,
'type'
,
'native_url'
,
'h5_url'
,
'android_url'
,
'ios_url'
,
'app_store_url'
,
'advertise'
,
'description'
,
'redirect_type'
],
self
::
SCENARIO_ADD
=>
[
'category_id'
,
'name'
,
'sort'
,
'icon'
,
'type'
,
'native_url'
,
'
native_login_url'
,
'
h5_url'
,
'android_url'
,
'ios_url'
,
'app_store_url'
,
'advertise'
,
'description'
,
'redirect_type'
],
self
::
SCENARIO_EDIT
=>
[
'category_id'
,
'id'
,
'name'
,
'sort'
,
'icon'
,
'type'
,
'native_url'
,
'
native_login_url'
,
'
h5_url'
,
'android_url'
,
'ios_url'
,
'app_store_url'
,
'advertise'
,
'description'
,
'redirect_type'
],
];
}
...
...
@@ -45,20 +46,21 @@ class CoinApplicationForm extends BaseForm
public
function
attributeLabels
()
{
return
[
'id'
=>
'ID'
,
'category_id'
=>
'分类ID'
,
'name'
=>
'名称'
,
'icon'
=>
'图标'
,
'sort'
=>
'排序'
,
'type'
=>
'类型'
,
'native_url'
=>
'原生链接'
,
'h5_url'
=>
'h5链接'
,
'android_url'
=>
'安卓链接'
,
'ios_url'
=>
'ios企业版链接'
,
'app_store_url'
=>
'ios商店版链接'
,
'advertise'
=>
'宣传语'
,
'description'
=>
'介绍'
,
'redirect_type'
=>
'跳转方式'
,
'id'
=>
'ID'
,
'category_id'
=>
'分类ID'
,
'name'
=>
'名称'
,
'icon'
=>
'图标'
,
'sort'
=>
'排序'
,
'type'
=>
'类型'
,
'native_url'
=>
'原生链接'
,
'native_login_url'
=>
'原生登录链接'
,
'h5_url'
=>
'h5链接'
,
'android_url'
=>
'安卓链接'
,
'ios_url'
=>
'ios企业版链接'
,
'app_store_url'
=>
'ios商店版链接'
,
'advertise'
=>
'宣传语'
,
'description'
=>
'介绍'
,
'redirect_type'
=>
'跳转方式'
,
];
}
...
...
backend/views/application/add.php
View file @
15ec0f4e
...
...
@@ -53,6 +53,12 @@
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
原生登录链接
</label>
<div
class=
"layui-input-block"
>
<input
class=
"layui-input"
name=
"native_login_url"
value=
""
>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
h5链接
</label>
<div
class=
"layui-input-block"
>
<input
class=
"layui-input"
name=
"h5_url"
value=
""
>
...
...
backend/views/application/edit.php
View file @
15ec0f4e
...
...
@@ -55,6 +55,12 @@
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
原生登录链接
</label>
<div
class=
"layui-input-block"
>
<input
class=
"layui-input"
name=
"native_login_url"
value=
"
<?=
$item
[
'native_login_url'
]
?>
"
>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
h5链接
</label>
<div
class=
"layui-input-block"
>
<input
class=
"layui-input"
name=
"h5_url"
value=
"
<?=
$item
[
'h5_url'
]
?>
"
>
...
...
common/business/ApplicationBusiness.php
View file @
15ec0f4e
...
...
@@ -76,7 +76,7 @@ class ApplicationBusiness
{
$app_cate_Model
=
CoinAppCate
::
find
();
$data
=
$app_cate_Model
->
JoinWith
([
'application'
],
false
)
->
select
(
'cate_id,app_id,name,icon,type,native_url,h5_url,android_url,ios_url,app_store_url,redirect_type,'
.
CoinAppCate
::
tableName
()
.
'.sort'
)
->
select
(
'cate_id,app_id,name,icon,type,native_url,
native_login_url,
h5_url,android_url,ios_url,app_store_url,redirect_type,'
.
CoinAppCate
::
tableName
()
.
'.sort'
)
->
orderBy
(
CoinAppCate
::
tableName
()
.
'.sort asc'
)
->
asArray
()
->
all
();
$icon_Items
=
array_column
(
$data
,
'icon'
);
$icon_Items
=
array_unique
(
$icon_Items
);
...
...
common/service/chain33/LotteryService.php
View file @
15ec0f4e
...
...
@@ -52,9 +52,6 @@ class LotteryService
{
$ch
=
new
Curl
();
$jsonrpc
=
self
::
jsonRpcBuild
(
$params
,
$method
);
if
(
$method
==
'Chain33.SignRawTx'
){
//var_dump($jsonrpc);die;
}
$ch
->
setHeader
(
'Content-Type'
,
'application/json'
);
$ch
->
setRawPostData
(
$jsonrpc
);
$result
=
$ch
->
post
(
self
::
urlLotteryBuild
(),
false
);
...
...
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