Commit 58953256 authored by jianghaiming's avatar jianghaiming

update:set

parent 6a70e9f4
...@@ -14,6 +14,7 @@ use App\Exception\custom\MarketingException; ...@@ -14,6 +14,7 @@ use App\Exception\custom\MarketingException;
use App\Services\common\CommonService; use App\Services\common\CommonService;
use Api\PhpServices\Sensitive\Sensitive; use Api\PhpServices\Sensitive\Sensitive;
use App\Services\goods\GoodsService; use App\Services\goods\GoodsService;
use Helpers\Aes;
class MarketingGoodsService class MarketingGoodsService
{ {
public static function getMarketingGoodsList($params) public static function getMarketingGoodsList($params)
...@@ -142,6 +143,10 @@ class MarketingGoodsService ...@@ -142,6 +143,10 @@ class MarketingGoodsService
$list[$i]['share_price'] = $firstCommission/100; $list[$i]['share_price'] = $firstCommission/100;
} }
$content = $userId .'_' .$value['marketing_id'];
$goodsShareId = Aes::encrypt($content);
$list[$i]['distributor_code'] = $goodsShareId;
$i++; $i++;
} }
......
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