Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
introducer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sugar
introducer
Commits
e5377a32
Commit
e5377a32
authored
Jun 26, 2023
by
sugar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
易购商家后台
parent
9c9f3f59
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
application/admin/controller/shopro/order/Goodsorder.php
application/admin/controller/shopro/order/Goodsorder.php
+18
-1
application/admin/controller/users/Withdraw.php
application/admin/controller/users/Withdraw.php
+7
-0
No files found.
application/admin/controller/shopro/order/Goodsorder.php
View file @
e5377a32
...
...
@@ -162,8 +162,25 @@ class Goodsorder extends Backend
$this
->
model
->
where
([
'id'
=>
$param
[
'order_id'
]])
->
update
(
$save
);
$this
->
success
(
'发货成功'
);
}
else
{
$groupdata
=
[
'YTO'
=>
'圆通速递'
,
'HTKY'
=>
'百世快递'
,
'ZTO'
=>
'中通快递'
,
'STO'
=>
'申通快递'
,
'YD'
=>
'韵达速递'
,
'SF'
=>
'顺丰速运'
,
'ZTO'
=>
'中通快递'
,
'YZPY'
=>
'邮政快递包裹'
,
'EMS'
=>
'EMS'
,
'HHTT'
=>
'天天快递'
,
'JD'
=>
'京东快递'
,
'UC'
=>
'优速快递'
,
'DBL'
=>
'德邦快递'
,
'ZJS'
=>
'宅急送'
,
'TNT'
=>
'TNT快递'
,
];
$order_id
=
$this
->
request
->
param
(
'ids'
);
$this
->
view
->
assign
(
'groupdata'
,
[
'YTO'
=>
'圆通速递'
,
'HTKY'
=>
'百世快递'
,
'ZTO'
=>
'中通快递'
,
'YD'
=>
'韵达速递'
,
'SF'
=>
'顺丰速运'
]
);
$this
->
view
->
assign
(
'groupdata'
,
$groupdata
);
$this
->
view
->
assign
(
'order_id'
,
$order_id
);
return
$this
->
view
->
fetch
();
}
...
...
application/admin/controller/users/Withdraw.php
View file @
e5377a32
...
...
@@ -56,6 +56,8 @@ class Withdraw extends Backend
{
//设置过滤方法
$this
->
request
->
filter
([
'strip_tags'
,
'trim'
]);
$filter
=
json_decode
(
$this
->
request
->
get
(
"filter"
),
true
);
$op
=
json_decode
(
$this
->
request
->
get
(
"op"
),
true
);
if
(
false
===
$this
->
request
->
isAjax
())
{
return
$this
->
view
->
fetch
();
}
...
...
@@ -73,8 +75,13 @@ class Withdraw extends Backend
->
where
(
$where
)
->
where
([
'status'
=>
1
])
->
sum
(
'money'
);
$user_where
=
[];
if
(
isset
(
$filter
[
'name'
]))
{
$user_where
[
'realname'
]
=
$filter
[
'name'
];
}
$total_money
=
$this
->
usersmodel
->
where
([
'id'
=>
[
'not in'
,[
191
,
183
,
176
,
15
,
34
,
33
,
26
,
21
,
14
,
13
,
5
]]])
->
where
(
$user_where
)
->
sum
(
'total_money'
);
$result
=
[
'total'
=>
$list
->
total
(),
'rows'
=>
$list
->
items
(),
'total_withraw'
=>
sprintf
(
"%.2f"
,
$total_withraw
/
100
),
'total_money'
=>
$total_money
];
return
json
(
$result
);
...
...
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