Commit 01ecb999 authored by luhongguang's avatar luhongguang

update: 线上测试用生活号id

parent 65a3c3fa
...@@ -1596,11 +1596,9 @@ class GoodsService ...@@ -1596,11 +1596,9 @@ class GoodsService
} }
} }
} }
PindanGoodsSku::save(["total_amount_sold" => $goodsSku["total_amount_sold"] + $num] PindanGoodsSku::save(["total_amount_sold[+]" => $num], ["goods_sku_id" => $goodsSkuId]);
, ["goods_sku_id" => $goodsSkuId]);
} else { } else {
GoodsSku::save(["total_amount_sold" => $goodsSku["total_amount_sold"] + $num] GoodsSku::save(["total_amount_sold[+]" => $num], ["goods_sku_id" => $goodsSkuId]);
, ["goods_sku_id" => $goodsSkuId]);
} }
PaySuccessGoodsCallbackRecord::insertRecord([ PaySuccessGoodsCallbackRecord::insertRecord([
......
...@@ -22,6 +22,8 @@ use App\Exception\custom\GoodsException; ...@@ -22,6 +22,8 @@ use App\Exception\custom\GoodsException;
class MarketingService class MarketingService
{ {
const ONLINE_LIFE_ACCOUNT_ID = "19019625839230981";
const ONLINE_LIFE_ACCOUNT_ID_TEST = "17963416161910792";
/** /**
* 写死的自营生活号 * 写死的自营生活号
* @return string * @return string
...@@ -34,8 +36,8 @@ class MarketingService ...@@ -34,8 +36,8 @@ class MarketingService
} elseif (in_array($env, ['test'])) { } elseif (in_array($env, ['test'])) {
$lifeAccountId = "15559498695737346"; $lifeAccountId = "15559498695737346";
}else { }else {
// $lifeAccountId = "19019625839230981"; // $lifeAccountId = self::ONLINE_LIFE_ACCOUNT_ID;
$lifeAccountId = "17963416161910792";//测试用 $lifeAccountId = self::ONLINE_LIFE_ACCOUNT_ID_TEST;//测试用
} }
return $lifeAccountId; return $lifeAccountId;
} }
...@@ -285,6 +287,11 @@ class MarketingService ...@@ -285,6 +287,11 @@ class MarketingService
$lists[$key]["online_status_desc"] = Marketing::$onlineStatusDesc[$value["online_status"]]; $lists[$key]["online_status_desc"] = Marketing::$onlineStatusDesc[$value["online_status"]];
if (!empty($priceData[$value["marketing_id"]])) { if (!empty($priceData[$value["marketing_id"]])) {
$currentLifeAccountId = $priceData[$value["marketing_id"]]["publish_life_account_id"]; $currentLifeAccountId = $priceData[$value["marketing_id"]]["publish_life_account_id"];
//小程序前端过滤掉线上测试生活号发布的活动
// if ($params['from'] == 1 && $currentLifeAccountId == self::ONLINE_LIFE_ACCOUNT_ID_TEST) {
// continue;
// }
$lists[$key]["publish_life_account_id"] = $currentLifeAccountId; $lists[$key]["publish_life_account_id"] = $currentLifeAccountId;
if (!empty($lifeAccountList[$currentLifeAccountId])) { if (!empty($lifeAccountList[$currentLifeAccountId])) {
$lists[$key]["life_account_icon"] = $lifeAccountList[$currentLifeAccountId]["life_account_icon"]; $lists[$key]["life_account_icon"] = $lifeAccountList[$currentLifeAccountId]["life_account_icon"];
......
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