Selaa lähdekoodia

wesmiler ECY 画画交易平台

APPLE 3 vuotta sitten
vanhempi
commit
d93fda37ce

+ 1 - 1
application/admin/controller/shop/Goods.php

@@ -87,7 +87,6 @@ class Goods extends Backend
                     $params[$this->dataLimitField] = $this->auth->id;
                     $params[$this->dataLimitField] = $this->auth->id;
                 }
                 }
                 $params['price1']=$params['price'];
                 $params['price1']=$params['price'];
-                $params['description'] = strtoupper(uniqid('G'));
 
 
                 $result = false;
                 $result = false;
                 Db::startTrans();
                 Db::startTrans();
@@ -100,6 +99,7 @@ class Goods extends Backend
                     }
                     }
                     $result = $this->model->allowField(true)->insertGetId($params);
                     $result = $this->model->allowField(true)->insertGetId($params);
                     Db::commit();
                     Db::commit();
+                    $this->model->where(['id'=> $result])->update(['description'=> 'G'.$result]);
                 } catch (ValidateException $e) {
                 } catch (ValidateException $e) {
                     Db::rollback();
                     Db::rollback();
                     $this->error($e->getMessage());
                     $this->error($e->getMessage());

+ 1 - 1
application/api/controller/Shop.php

@@ -45,7 +45,7 @@ class Shop extends Api
 		$map['on_sale']=1;
 		$map['on_sale']=1;
 		$map['on_resale']=2;
 		$map['on_resale']=2;
 		$pagesize=10;
 		$pagesize=10;
-//        $map['istrade']=0;
+        $map['istrade']=0;
         /*获取茶室*/
         /*获取茶室*/
         $studio=db('studio')->where(['title'=>$this->auth->login_studio])->find();
         $studio=db('studio')->where(['title'=>$this->auth->login_studio])->find();
         if($studio)
         if($studio)