|
|
@@ -12,16 +12,17 @@ use common\services\xhMerchantService;
|
|
|
|
|
|
class MerchantExtendController extends BaseController
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
//设置微信支付
|
|
|
public function actionSetWxPay()
|
|
|
{
|
|
|
$post = Yii::$app->request->post();
|
|
|
$merchantId = isset($post['merchantId']) ? $post['merchantId'] : 0;
|
|
|
- util::ok();
|
|
|
+ $post['wxPayInit'] = 1;
|
|
|
MerchantExtendService::updateByCondition(['merchantId' => $merchantId], $post);
|
|
|
+ util::ok();
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
//设置支付宝支付
|
|
|
public function actionSetAlipay()
|
|
|
{
|