You've already forked qlg.tsgz.moe
							
							TradeRule后台完成
This commit is contained in:
		| @@ -8,10 +8,11 @@ use think\Db; | ||||
|  | ||||
| class TradeRule extends Base | ||||
| { | ||||
|     protected $createTime = "create_time"; | ||||
|     protected $dateFormat = false; | ||||
|     protected $updateTime = false; | ||||
|     /** | ||||
|  | ||||
|      * 分页 | ||||
|  | ||||
|      */ | ||||
|  | ||||
|     public function pageQuery(){ | ||||
| @@ -61,6 +62,14 @@ class TradeRule extends Base | ||||
|             return WSTReturn($this->getError(),-1); | ||||
|         } | ||||
|     } | ||||
|     /** | ||||
|      * 获取指定对象 | ||||
|      */ | ||||
|     public function getById($id){ | ||||
|         $single = $this->where(['id'=>$id,'dataFlag'=>1])->find(); | ||||
|         $single['content'] = htmlspecialchars_decode($single['content']); | ||||
|         return $single; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 编辑 | ||||
|   | ||||
| @@ -11,7 +11,7 @@ | ||||
| <script> | ||||
| $(function () { | ||||
| 	{if condition="$object['id']!=0 "} | ||||
| 	   WST.setValues({$object}); | ||||
| 	   WST.setValues({:json_encode($object)}); | ||||
| 	{/if} | ||||
| 	$('#articleForm').validator({ | ||||
| 	    fields: { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user