1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
-
-
- namespace app\home\controller;
-
- use think\Db;
-
- class MultiMerchant extends Base
- {
- public function _initialize() {
- parent::_initialize();
-
- $this->weapp_multi_merchant_db = Db::name('weapp_multi_merchant');
- }
-
-
- public function merchant_lists()
- {
- $eyou = [];
- $this->eyou = array_merge($this->eyou, $eyou);
- $this->assign('eyou', $this->eyou);
- return $this->fetch('merchant/merchant_lists');
- }
-
-
- public function merchant_index()
- {
- $merchant_id = input('merchant_id/d', 0);
- empty($merchant_id) && $this->error('请选择商家访问..');
- $this->assign('merchant_id', $merchant_id);
-
- $eyou = [];
- $this->eyou = array_merge($this->eyou, $eyou);
- $this->assign('eyou', $this->eyou);
- return $this->fetch('merchant/merchant_index');
- }
- }
|