作者 lyh

gx

@@ -45,8 +45,14 @@ class Extension3059ModuleController extends BaseController @@ -45,8 +45,14 @@ class Extension3059ModuleController extends BaseController
45 $searchParam = [ 45 $searchParam = [
46 'module_id'=>$this->param['module_id'], 46 'module_id'=>$this->param['module_id'],
47 ]; 47 ];
48 - if(isset($this->param['uuid'])){ 48 + $moduleValueModel = new ExtensionModuleValue();
  49 + if(isset($this->param['product_id'])){
49 $searchParam['uuid'] = $this->param['uuid']; 50 $searchParam['uuid'] = $this->param['uuid'];
  51 + $info = $moduleValueModel->read(['product_id'=>$this->param['product_id']]);
  52 + if($info === false){
  53 + $this->response('success');
  54 + }
  55 + $searchParam['uuid'] = $info['uuid'];
50 } 56 }
51 $data = []; 57 $data = [];
52 $filedData = $this->getFiledList(); 58 $filedData = $this->getFiledList();