Commit 0fa1d83f authored by luhongguang's avatar luhongguang

update:脚本优化

parent aeb14ba0
...@@ -179,11 +179,9 @@ class GoodstoinitController extends Cli ...@@ -179,11 +179,9 @@ class GoodstoinitController extends Cli
$accountRes = $this->getLifeAccountIdAndMerchantId($userId); $accountRes = $this->getLifeAccountIdAndMerchantId($userId);
if (!empty($accountRes)) { if (!empty($accountRes)) {
$lifeAccountId = $accountRes["life_account_id"]; $lifeAccountId = $accountRes["life_account_id"];
$merchantId = $accountRes["merchant_id"];
} else { } else {
$lifeAccountInfo = $this->addCreateUnauthorized($userId); $lifeAccountInfo = $this->addCreateUnauthorized($userId);
$lifeAccountId = $lifeAccountInfo["life_account_id"]; $lifeAccountId = empty($lifeAccountInfo["life_account_id"]) ? "" : $lifeAccountInfo["life_account_id"];
$merchantId = $lifeAccountInfo["merchant_id"];
} }
if (empty($lifeAccountId)) { if (empty($lifeAccountId)) {
echo "add goods data, user_id: $userId 没有 life_account_id \n"; echo "add goods data, user_id: $userId 没有 life_account_id \n";
......
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