zhaojs
2023-07-12 87940848162256b5adaa125408b297dba3e8691b
application/api/logic/commission/Pdd.php
@@ -27,7 +27,7 @@
     */
    public function getEstimateCommission($user_id,$time_type,$is_own)
    {
        $info = Db::name('pdd_order_commission')->field("COUNT(id) as order_num,COALESCE(SUM(pub_share_pre_fee),0) as money,COALESCE(SUM(alipay_total_price),0) as sales_volume,'拼多多' as name")->where(['member_id'=>$user_id,'is_own'=>$is_own])->whereTime('tb_paid_time', $time_type)->find();
        $info = Db::name('pdd_order_commission')->field("COUNT(id) as order_num,COALESCE(SUM(pub_share_pre_fee),0) as money,COALESCE(SUM(alipay_total_price),0) as sales_volume,'拼多多' as name")->where(['member_id'=>$user_id,'is_own'=>$is_own])->whereTime('tb_paid_time', $time_type)->whereIn('tk_status',[0,1,2,5])->find();
        return $info;
    }
@@ -219,9 +219,9 @@
                    return ['status'=>false,'info'=>'订单状态修改失败'];
                }
            }
            if(!empty($push_data)){
                $this->userPush($push_data);
            }
            // if(!empty($push_data)){
            //     $this->userPush($push_data);
            // }
        }else{ //已经拆分订单,进行更新
            foreach($find_commission as $item){
                $item_data = [