Commit c80c94bf authored by pengfei's avatar pengfei

update 修改团长分销-奖励脚本

parent c6368d49
...@@ -20,7 +20,7 @@ class ColonelwalletController extends Cli ...@@ -20,7 +20,7 @@ class ColonelwalletController extends Cli
if (!empty($payInfoList)) { if (!empty($payInfoList)) {
if ($this->deductingInventory($payInfoList)) { if ($this->deductingInventory($payInfoList)) {
if ($this->toWallet($payInfoList)) { if ($this->toWallet($payInfoList)) {
$this->handlePayInfoStatus(array_column($payInfoList, 'colonel_distributor_pay_info_id')); $this->handlePayInfoStatus(array_column($payInfoList, 'pay_info_id'));
} }
} }
} }
...@@ -133,6 +133,6 @@ class ColonelwalletController extends Cli ...@@ -133,6 +133,6 @@ class ColonelwalletController extends Cli
*/ */
public function handlePayInfoStatus(array $payInfoIds) public function handlePayInfoStatus(array $payInfoIds)
{ {
return ColonelDistributorPayInfo::updateRecord(['status' => ColonelDistributorPayInfo::STATUS_USE], ['id' => $payInfoIds]); return ColonelDistributorPayInfo::updateRecord(['status' => ColonelDistributorPayInfo::STATUS_USE], ['pay_info_id' => $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