Commit 69bcdc34 by 朱继来

调整合并用户

parent 1a583103
Showing with 2 additions and 2 deletions
...@@ -171,8 +171,8 @@ class CronController extends Controller ...@@ -171,8 +171,8 @@ class CronController extends Controller
foreach ($amount_1 as $k1=>&$v1) { foreach ($amount_1 as $k1=>&$v1) {
if (in_array($k1, $keys)) { if (in_array($k1, $keys)) {
if (isset($v1['rmb'])) $v1['rmb'] = $v1['rmb'] + $amount_2[$k1]['rmb']; if (isset($v1['rmb']) && isset($amount_2[$k1]['rmb'])) $v1['rmb'] = $v1['rmb'] + $amount_2[$k1]['rmb'];
if (isset($v1['usd'])) $v1['usd'] = $v1['usd'] + $amount_2[$k1]['usd']; if (isset($v1['usd']) && isset($amount_2[$k1]['usd'])) $v1['usd'] = $v1['usd'] + $amount_2[$k1]['usd'];
unset($amount_2[$k1]); // 删除amount_2中已合并金额的用户 unset($amount_2[$k1]); // 删除amount_2中已合并金额的用户
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment