|
|
@@ -32,12 +32,14 @@ UserClass::getAllList()
|
|
|
|
|
|
condition支持查询条件包括
|
|
|
|
|
|
-'name'=>'john'
|
|
|
-'id>'=>3
|
|
|
-'id<'=>10
|
|
|
-'id'=>['in',[10,11,12]]
|
|
|
-'age'=>['between',[20,30]]
|
|
|
-'name'=>['like','Jack']
|
|
|
+$condition= [
|
|
|
+ 'name'=>'john'
|
|
|
+ 'id>'=>3
|
|
|
+ 'id<'=>10
|
|
|
+ 'id'=>['in',[10,11,12]]
|
|
|
+ 'age'=>['between',[20,30]]
|
|
|
+ 'name'=>['like','Jack']
|
|
|
+];
|
|
|
````
|
|
|
|
|
|
|
|
|
@@ -63,7 +65,7 @@ condition支持查询条件包括
|
|
|
##### 调试方法
|
|
|
|
|
|
Yii自带debug,它对每一次的请求,参数,插入数据库都有记录,很好进行跟踪。
|
|
|
-在域名尾巴增加个debug即可使用,如:https://a.huaml.com/debug
|
|
|
+在域名尾巴增加个debug即可使用,如:http://api.shop.hzghd.com/debug
|
|
|
|
|
|
|
|
|
|