| | |
| | | $mobile = $this->request->post('mobile'); |
| | | $captcha = $this->request->post('captcha'); |
| | | $ismobouth=$this->request->post('ismobouth',false); |
| | | $push_cid=$this->request->post('push_cid',false); |
| | | $pushCid=$this->request->post('pushCid',false); |
| | | if (!$mobile || !$captcha) { |
| | | $this->error(__('Invalid parameters')); |
| | | } |
| | |
| | | //如果已经有账号则直接登录 |
| | | $ret = $this->auth->direct($user->id); |
| | | } else { |
| | | $ret = $this->auth->register($mobile, Random::alnum(), '', $mobile, []); |
| | | $ret = $this->auth->register($mobile, Random::alnum(), '', $mobile, [],'',[],$pushCid); |
| | | } |
| | | if ($ret) { |
| | | Sms::flush($mobile, 'login'); |
| | |
| | | 'url_type' => "3", //商品详情, |
| | | 'isCollect' => 0, //是否收藏 |
| | | 'topLevelName' => self::$topLevelName, //顶级等级名称 |
| | | 'predictPromotionRate'=>0,//比价行为预判定佣金,需要用户备案-拼多多专用 |
| | | ]; |
| | | } |
| | | |
| | |
| | | $init_goods['shopLogo'] = isset($goods['mall_img_url']) ? $goods['mall_img_url'] : ''; |
| | | $init_goods['sourceType'] = "pdd"; |
| | | $init_goods['faction'] = "p"; |
| | | $init_goods['predictPromotionRate']= isset($goods['predict_promotion_rate']) ? $goods['predict_promotion_rate'] : 1; |
| | | $init_goods['desc'] = isset($goods['goods_desc']) ? $goods['goods_desc'] : ''; //推广文案 |
| | | $init_goods['imgs'] = $init_goods['detailPics'] = isset($goods['goods_gallery_urls']) ? $goods['goods_gallery_urls'] : ''; //轮播图 |
| | | $init_goods['video'] = isset($goods['video_url']) ? $goods['video_url'] : ''; //视频 |