Commit 65a3c80b authored by pengfei's avatar pengfei

update 优化团长分销-计算奖励脚本

parent 57f4317a
...@@ -130,8 +130,8 @@ class ColonelorderController extends Cli ...@@ -130,8 +130,8 @@ class ColonelorderController extends Cli
$colonelPayInfoData = array_merge($colonelPayInfoData,$batchPayInfoData); $colonelPayInfoData = array_merge($colonelPayInfoData,$batchPayInfoData);
} }
if (!empty($colonelPayInfoData)) { if (!empty($colonelPayInfoData)) {
$data = $this->addIdgenId($colonelPayInfoData);
try { try {
$data = $this->addIdgenId($colonelPayInfoData);
ColonelDistributorPayInfo::beginTransaction(); ColonelDistributorPayInfo::beginTransaction();
if (!$this->addColonelDistributorPayInfo($data)) { if (!$this->addColonelDistributorPayInfo($data)) {
throw new \Exception(sprintf("写入错误参数 %s", json_encode($data))); throw new \Exception(sprintf("写入错误参数 %s", json_encode($data)));
......
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