| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php
- namespace pt\controllers;
- use biz\sj\services\MerchantExtendService;
- use Yii;
- use bizHd\admin\services\AdminService;
- use biz\sj\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();
- $sjId = isset($post['sjId']) ? $post['sjId'] : 0;
- $post['wxPayInit'] = 1;
- MerchantExtendService::updateByCondition(['sjId' => $sjId], $post);
- util::complete();
- }
-
- //设置支付宝支付
- public function actionSetAlipay()
- {
- $post = Yii::$app->request->post();
- $sjId = isset($post['sjId']) ? $post['sjId'] : 0;
- $post['alipayInit'] = 1;
- MerchantExtendService::updateByCondition(['sjId' => $sjId], $post);
- util::complete();
- }
- //商家的拓展信息 ssh 2020.2.16
- public function actionDetail()
- {
- $id = Yii::$app->request->get('id');
- $extend = MerchantExtendService::getBySjId($id);
- util::success($extend);
- }
-
- }
|