Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mintest
Project
Project
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
朱招明
mintest
Commits
100f077f
Commit
100f077f
authored
Apr 14, 2022
by
朱招明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
接口返回分红方式
parent
0314286a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
SchemeTransformer.php
Modules/Share/Transformers/SchemeTransformer.php
+6
-1
No files found.
Modules/Share/Transformers/SchemeTransformer.php
View file @
100f077f
...
@@ -25,6 +25,7 @@ class SchemeTransformer extends BaseTransformer
...
@@ -25,6 +25,7 @@ class SchemeTransformer extends BaseTransformer
* @OA\Property(property="unconsume_amount", type="float", description="不可消费充值金额"),
* @OA\Property(property="unconsume_amount", type="float", description="不可消费充值金额"),
* @OA\Property(property="online_pay", type="integer", description="是否线上支付"),
* @OA\Property(property="online_pay", type="integer", description="是否线上支付"),
* @OA\Property(property="dividend_type", type="integer", description="分红方式"),
* @OA\Property(property="dividend_type", type="integer", description="分红方式"),
* @OA\Property(property="dividend_type_text", type="integer", description="分红方式"),
* @OA\Property(property="benefit_month", type="integer", description="受益时长/月"),
* @OA\Property(property="benefit_month", type="integer", description="受益时长/月"),
* @OA\Property(property="interests_images", type="string", description="方案权益"),
* @OA\Property(property="interests_images", type="string", description="方案权益"),
* @OA\Property(property="status", type="integer", description="启用状态"),
* @OA\Property(property="status", type="integer", description="启用状态"),
...
@@ -34,6 +35,10 @@ class SchemeTransformer extends BaseTransformer
...
@@ -34,6 +35,10 @@ class SchemeTransformer extends BaseTransformer
*/
*/
public
function
transform
(
Scheme
$scheme
)
public
function
transform
(
Scheme
$scheme
)
{
{
return
map_attr
(
$scheme
,
[
'id'
,
'name'
,
'direct_source_ratio'
,
'indirect_source_ratio'
,
'recharge_amount'
,
'consume_amount'
,
'unconsume_amount'
,
'online_pay'
,
'dividend_type'
,
'benefit_month'
,
'interests_images'
,
'status'
,
'created_at'
,
'updated_at'
]);
$dividend_type
=
config
(
'scheme.dividend_type'
);
$scheme
->
dividend_type_text
=
$dividend_type
[
$scheme
->
dividend_type
]
??
'无'
;
return
map_attr
(
$scheme
,
[
'id'
,
'name'
,
'direct_source_ratio'
,
'indirect_source_ratio'
,
'recharge_amount'
,
'consume_amount'
,
'unconsume_amount'
,
'online_pay'
,
'dividend_type'
,
'dividend_type_text'
,
'benefit_month'
,
'interests_images'
,
'status'
,
'created_at'
,
'updated_at'
]);
}
}
}
}
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