|
|
@@ -31,16 +31,8 @@ class ShopController extends BaseController
|
|
|
public function actionChangeWx()
|
|
|
{
|
|
|
$get = Yii::$app->request->get();
|
|
|
- $isApple = $get['isApple'] ?? 0;
|
|
|
$url = $get['url'] ?? '';
|
|
|
$shop = $this->shop;
|
|
|
- if (isset($shop->hasRenew) && $shop->hasRenew == 0) {
|
|
|
- if ($isApple == 1) {
|
|
|
- util::fail('请用小程序操作');
|
|
|
- } else {
|
|
|
- util::fail('请先续期');
|
|
|
- }
|
|
|
- }
|
|
|
$shop->superWx = $url;
|
|
|
$shop->save();
|
|
|
util::complete('修改成功');
|