Commit 7ecfbf57 authored by luhongguang's avatar luhongguang

Merge branch 'develop' of https://git.yidian-inc.com:8021/bp/goods into develop

parents ad7a2db8 a724aa39
...@@ -66,10 +66,6 @@ class Marketing extends MysqlBase ...@@ -66,10 +66,6 @@ class Marketing extends MysqlBase
$colums = '*'; $colums = '*';
} }
if (!empty($where['marketing_name'])) {
$where['marketing_name'] = $where['marketing_name'];
}
if (!empty($where)) { if (!empty($where)) {
$data = self::formatWhere($where); $data = self::formatWhere($where);
} }
...@@ -103,7 +99,8 @@ class Marketing extends MysqlBase ...@@ -103,7 +99,8 @@ class Marketing extends MysqlBase
$data = []; $data = [];
if (!empty($where['marketing_name'])) { if (!empty($where['marketing_name'])) {
$data['marketing_name[~]'] = $where['marketing_name']; //$data['marketing_name[~]'] = $where['marketing_name'];
$data['marketing_name'] = $where['marketing_name'];
} }
if (!empty($where['marketing_id'])) { if (!empty($where['marketing_id'])) {
......
...@@ -182,9 +182,9 @@ class DistributorService ...@@ -182,9 +182,9 @@ class DistributorService
} }
$jwUserId = ''; $jwUserId = '';
if (empty($distributorCode)) { // if (empty($distributorCode)) {
throw new DistributorException(['cus'=>9]); // throw new DistributorException(['cus'=>9]);
} // }
$info = Distributor::getRecord(['user_id' => $shareUserId]); $info = Distributor::getRecord(['user_id' => $shareUserId]);
if (empty($info)) { if (empty($info)) {
......
...@@ -65,7 +65,7 @@ class MarketingService ...@@ -65,7 +65,7 @@ class MarketingService
} }
$goodsSkuList = GoodsSku::select('*', $where); $goodsSkuList = GoodsSku::select('*', $where);
$lifeAccountIds = []; $lifeAccountIds = [];
if (!empty($goodsSkuList)) { if (!empty($goodsSkuList)) {
$lifeAccountIds = array_column($goodsSkuList, 'life_account_id'); $lifeAccountIds = array_column($goodsSkuList, 'life_account_id');
......
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