Commit b9f27e36 authored by pengfei's avatar pengfei

update colonelorder code style

parent 3d37279a
...@@ -314,8 +314,10 @@ class ColonelorderController extends Job ...@@ -314,8 +314,10 @@ class ColonelorderController extends Job
} }
// 达到活动下线条件 // 达到活动下线条件
if (self::ACTIVITY_OFFLINE_BALANCE >= $diffBalance) { if (self::ACTIVITY_OFFLINE_BALANCE >= $diffBalance) {
Marketing::updateRecord(['online_status' => Marketing::ONLINE_STATUS_GUANBI], Marketing::updateRecord(
['marketing_id' => $marketing['marketing_id']]); ['online_status' => Marketing::ONLINE_STATUS_GUANBI],
['marketing_id' => $marketing['marketing_id']]
);
} }
} }
......
...@@ -187,8 +187,10 @@ class ColonelwalletController extends Job ...@@ -187,8 +187,10 @@ class ColonelwalletController extends Job
*/ */
private function handlePayInfoStatus(array $payInfoIds): bool private function handlePayInfoStatus(array $payInfoIds): bool
{ {
$upStatus = ColonelDistributorPayInfo::updateRecord(['status' => ColonelDistributorPayInfo::STATUS_USE], $upStatus = ColonelDistributorPayInfo::updateRecord(
['pay_info_id' => $payInfoIds]); ['status' => ColonelDistributorPayInfo::STATUS_USE],
['pay_info_id' => $payInfoIds]
);
if (empty($upStatus)) { if (empty($upStatus)) {
throw new Exception('更新pay_info状态失败.pay_info_ids=' . implode(',',$payInfoIds)); throw new Exception('更新pay_info状态失败.pay_info_ids=' . implode(',',$payInfoIds));
} }
......
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 to comment