| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace saas\controllers;
- use biz\merchant\services\MerchantExtendService;
- use Yii;
- use biz\admin\services\AdminService;
- use biz\merchant\services\MerchantService;
- use common\components\util;
- use common\components\wxUtil;
- 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();
- MerchantExtendService::updateByCondition(['merchantId' => $merchantId], $post);
- }
-
- //设置支付宝支付
- public function actionSetAlipay()
- {
- $post = Yii::$app->request->post();
- $merchantId = isset($post['merchantId']) ? $post['merchantId'] : 0;
- util::ok();
- MerchantExtendService::updateByCondition(['merchantId' => $merchantId], $post);
- }
-
- //商家的拓展信息 shish 2020.2.16
- public function actionDetail()
- {
- $id = Yii::$app->request->get('id');
- $extend = MerchantExtendService::getByMerchantId($id);
- util::success($extend);
- }
-
- }
|