heyuntao
2023-06-09 5651c853606f969651d5680ccaee4918e55c11ed
application/api/controller/User.php
@@ -18,6 +18,8 @@
use app\api\logic\UserWithdrawal as LogicUserWithdrawal;
use app\api\logic\SettlementRecord as LogicSettlementRecord;
use app\api\logic\UserMoneyLog as LogicUserMoneyLog;
use think\log;
/**
 * 会员接口
 */
@@ -430,7 +432,7 @@
        $this->success([],'删除成功');
    }
    /**
     * 标记浏览0元购商品记录
     *
@@ -451,6 +453,25 @@
        $this->success([],'添加成功');
    }
    /**
     * 检测是否首单
     *
     * @return void
     */
    public function check_isfirst_free()
    {
        $LogicUserBrowse = new LogicUserBrowse();
        $res = $LogicUserBrowse->checkIsFirstFree(USERID);
        if($res === false) $this->error($LogicUserBrowse->getError());
        Log::write('检测是否首单:'.json_encode($res));
        if(empty($res)) $this->success(['info'=>1],'首单客户');
        $this->success(['info'=>0],'非首单客户');
    }
     /**
     * 用户收藏记录