user_id); $this->_success('获取成功',$sign); } /** * showdoc * @catalog 接口/签到 * @title 签到 * @description 签到 * @method get * @url /sign/sign * @return {"code":1,"msg":"获取成功","data":{"integral":"22","growth":"552","day":1},"show":0,"time":"0.201775","debug":{"request":{"get":[],"post":[],"header":{"connection":"keep-alive","accept-encoding":"gzip, deflate, br","host":"www.likeb2b2c.com:20002","postman-token":"1c4ef02d-b268-4ba7-a5df-c5b6a5f3d630","accept":"*\/*","user-agent":"PostmanRuntime\/7.26.2","token":"ff0c66fe0c89fe1e9be591d82d551521","content-type":"","content-length":""}}}} * @return_param integral int 获得积分值 * @return_param growth int 获得成长值 * @return_param days int 连续天数 * @remark * @number 1 */ public function sign(){ $result = $this->validate(['user_id'=>$this->user_id],'app\api\validate\Sign'); if($result === true){ $sign = SignLogic::sign($this->user_id); $this->_success('签到成功',$sign); } $this->_error($result); } /** * showdoc * @catalog 接口/签到 * @title 获取签到规则 * @description 获取签到规则 * @method get * @url /sign/rule * @return {"code":1,"msg":"获取成功","data":"1.每天签到可以获得每天签到奖励;\n2.每日最多可签到1次,断签则会重新计算连签天数,达到连续天数后即可获得连续奖励;\n3.活动以及奖励最终解释权归商家所有。\n","show":0,"time":"0.173280","debug":{"request":{"get":[],"post":[],"header":{"connection":"keep-alive","accept-encoding":"gzip, deflate, br","host":"www.likeb2b2c.com:20002","postman-token":"e8617112-b05d-4bea-a8d8-424a674f1c84","accept":"*\/*","user-agent":"PostmanRuntime\/7.26.2","token":"ff0c66fe0c89fe1e9be591d82d551521","content-type":"","content-length":""}}}} * @return_param * text 规则 * @remark * @number 1 */ public function rule(){ $rule = ConfigServer::get('sign_rule','instructions',''); $this->_success('获取成功',$rule); } }