|
@@ -1015,15 +1015,20 @@ class Tool
|
|
|
public function kou_yeji_huifu_api()
|
|
|
{
|
|
|
Dever::config('base')->hook = true;
|
|
|
-
|
|
|
- $where['state'] = 1;
|
|
|
+ $test = Dever::input('test');
|
|
|
+ if ($test == 1) {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ $where['state'] = 1;
|
|
|
+ }
|
|
|
+
|
|
|
$where['stype'] = 5;
|
|
|
$id = Dever::input('id');
|
|
|
if ($id) {
|
|
|
$where['id'] = $id;
|
|
|
}
|
|
|
$data = Dever::db('bill/sell')->all($where);
|
|
|
- $test = Dever::input('test');
|
|
|
+
|
|
|
if ($test == 1) {
|
|
|
print_r($data);die;
|
|
|
}
|