|
@@ -200,7 +200,7 @@ class CoflController extends Controller
|
|
|
$this->stats('activity',$crm);
|
|
|
$activity = ActivityService::getByToken($token);
|
|
|
if($activity){
|
|
|
- $user = $this->getUsers($openid);
|
|
|
+ $user = $this->getUsersV2($openid);
|
|
|
$distribution_channel_id = (isset($user[1]) && !empty($user[1]))?$user[1]:123;
|
|
|
$url_format = '%s://site%s.%s.com%s';
|
|
|
$activity_page = $activity->activity_page ;
|
|
@@ -247,7 +247,7 @@ class CoflController extends Controller
|
|
|
$app = new Application($this->auth($params));
|
|
|
return $app->oauth->redirect();
|
|
|
}
|
|
|
- $user = $this->getUsers($openid);
|
|
|
+ $user = $this->getUsersV2($openid);
|
|
|
if(!$user[0]){
|
|
|
$distribution_channel_id = 123;
|
|
|
}else{
|
|
@@ -270,7 +270,7 @@ class CoflController extends Controller
|
|
|
$app = new Application($this->auth($params));
|
|
|
return $app->oauth->redirect();
|
|
|
}
|
|
|
- $user = $this->getUsers($openid);
|
|
|
+ $user = $this->getUsersV2($openid);
|
|
|
if(!$user[0]){
|
|
|
$distribution_channel_id = 123;
|
|
|
}else{
|
|
@@ -293,7 +293,7 @@ class CoflController extends Controller
|
|
|
$app = new Application($this->auth($params));
|
|
|
return $app->oauth->redirect();
|
|
|
}
|
|
|
- $user = $this->getUsers($openid);
|
|
|
+ $user = $this->getUsersV2($openid);
|
|
|
if(!$user[0]){
|
|
|
$distribution_channel_id = 123;
|
|
|
}else{
|
|
@@ -549,7 +549,7 @@ class CoflController extends Controller
|
|
|
$app = new Application($this->auth($params));
|
|
|
return $app->oauth->redirect();
|
|
|
}
|
|
|
- $user = $this->getUsers($openid);
|
|
|
+ $user = $this->getUsersV2($openid);
|
|
|
if(!$user[0]){
|
|
|
$distribution_channel_id = 123;
|
|
|
}else{
|