...
|
...
|
@@ -156,10 +156,9 @@ class Config extends Api |
|
|
foreach ($Array as $k => $v) {
|
|
|
$Ids[] = $v['id'];
|
|
|
}
|
|
|
$Id = array_rand($Ids, 1);
|
|
|
dump($Id);
|
|
|
die;
|
|
|
$List = Db::name('gift_message')->where('id', $Id)->find();
|
|
|
// $Id = array_rand($Ids, 1);
|
|
|
$NEW = shuffle($Ids);
|
|
|
$List = Db::name('gift_message')->where('id', $NEW[0])->find();
|
|
|
$data = [
|
|
|
'Content' => $List['content']
|
|
|
];
|
...
|
...
|
|