goCheck('goods'); $res = (new ShareLogic())->getMnpQrCode($this->userId,$params); if(true === $res){ return $this->success('获取成功',['qr_code'=>ShareLogic::getReturnData()]); } return $this->fail(ShareLogic::getReturnData()); } /** * @notes 分享砍价小程序码 * @return \think\response\Json * @author Tab * @date 2021/9/28 17:27 */ public function getMnpQrCodeInitiate() { $params = (new ShareValidate())->goCheck('initiate'); $res = (new ShareLogic())->getMnpQrCodeInitiate($this->userId,$params); if(true === $res){ return $this->success('获取成功',['qr_code'=>ShareLogic::getReturnData()]); } return $this->fail(ShareLogic::getReturnData()); } /** * @notes 获取今日头条小程序码 * @return \think\response\Json * @throws \Exception * @author cjhao * @date 2021/11/25 9:59 */ public function getTouTiaoQrcode(){ $params = (new ShareValidate())->goCheck('goods'); $res = (new ShareLogic())->getTouTiaoQrcode($this->userId,$params); if(true === $res){ return $this->success('获取成功',['qr_code'=>ShareLogic::getReturnData()]); } return $this->fail(ShareLogic::getReturnData()); } }