|
@@ -7,7 +7,7 @@ namespace app\txx\controller;
|
|
|
use app\api\model\GoodSpec;
|
|
|
use app\txx\model\ActGood;
|
|
|
use app\txx\model\PlatformYouzan;
|
|
|
-use think\App;
|
|
|
+use app\txx\model\YzActivityPromoCode;use think\App;
|
|
|
use think\facade\Validate;
|
|
|
class Activity extends Base{
|
|
|
private $platform_id=[37,79];
|
|
@@ -131,13 +131,14 @@ class Activity extends Base{
|
|
|
->paginate(["list_rows"=>$param['size'],"page"=>$param['page']]);
|
|
|
$list->visible(['id',"actCode","yz_good_code","stock_num","awards_type","status","addtime","updatetime","act_name",
|
|
|
"company_name","contactor","mobile","startTime","endTime","act_status","sale_price","good_name","unit_name","cat_name",
|
|
|
- "brand_name","fetch_url","roundId","status_cn","ActStatus_cn"]);
|
|
|
+ "brand_name","fetch_url","roundId","status_cn","ActStatus_cn","awards_order_num"]);
|
|
|
$list->each(function (&$item){
|
|
|
$item['status_cn']=ActGood::$statusCn[$item['status']]??"";
|
|
|
$item['ActStatus_cn']=\app\txx\model\Act::$statusCn[$item['act_status']];
|
|
|
if($item['act_status']!==4){
|
|
|
$item['fetch_url']=null;
|
|
|
}
|
|
|
+ $item['awards_order_num']=YzActivityPromoCode::GetOrderNumById($item['id']);
|
|
|
});
|
|
|
$this->success("获取成功",["list"=>$list->items(),"count"=>$list->total()]);
|
|
|
}
|