promor sign up

This commit is contained in:
CHIEFSOFT\ameye
2024-09-18 10:50:34 -04:00
parent 492ec37652
commit 9eecd4f73e
3 changed files with 28 additions and 16 deletions
+1 -8
View File
@@ -10,17 +10,10 @@ class Home extends BaseController
}
public function promoIndex($promo,$promoOwner=''):string{
// echo $promo;
// echo $promoOwner;
//http://10.204.5.100:9083/en/promo/api/v1/start
// echo $backend_server = getenv("API_ENDPOINT");
$in["promo"] = $promo;
$in["promo_owner"] = $promoOwner;
$out = $this->APIcall('POST', $this->wrenchApiServer(). 'start',$in);
$out["task"] = $this->APIcall('POST', $this->wrenchApiServer(). 'tasks',$in);
//var_dump($out);
$out["task"] = $this->APIcall('POST', $this->wrenchApiServer(). 'tasks',$in)["result_list"];
return view('welcome_message', $out);
}
}