|
|
@@ -44,13 +44,13 @@ class ApplyController extends BaseController
|
|
|
//申请试用登记 shish 2020.1.11
|
|
|
public function actionRegister()
|
|
|
{
|
|
|
- $post = Yii::$app->request->post();
|
|
|
+ $get = Yii::$app->request->get();
|
|
|
$rand = rand(0, 1);
|
|
|
$data = ['focus' => 1, 'qrCode' => ''];
|
|
|
- if (isset($post['oldId']) && !empty($post['oldId'])) {
|
|
|
- $post['introMerchantId'] = $post['oldId'];
|
|
|
+ if (isset($get['oldId']) && !empty($get['oldId'])) {
|
|
|
+ $get['introMerchantId'] = $get['oldId'];
|
|
|
}
|
|
|
- ApplyClass::addApply($post);
|
|
|
+ ApplyClass::addApply($get);
|
|
|
if ($rand == 0) {
|
|
|
$data = ['focus' => 0, 'qrCode' => 'https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=3602624501,870193918&fm=26&gp=0.jpg'];
|
|
|
}
|