request->post(); $merchantId = isset($post['merchantId']) ? $post['merchantId'] : 0; $post['wxPayInit'] = 1; MerchantExtendService::updateByCondition(['merchantId' => $merchantId], $post); util::complete(); } //设置支付宝支付 public function actionSetAlipay() { $post = Yii::$app->request->post(); $merchantId = isset($post['merchantId']) ? $post['merchantId'] : 0; $post['alipayInit'] = 1; MerchantExtendService::updateByCondition(['merchantId' => $merchantId], $post); util::complete(); } //商家的拓展信息 shish 2020.2.16 public function actionDetail() { $id = Yii::$app->request->get('id'); $extend = MerchantExtendService::getByMerchantId($id); util::success($extend); } }