...
|
...
|
@@ -292,8 +292,10 @@ class SignController extends RestBaseController |
|
|
|
|
|
$date=date("w",time()); //这个可以获取数字星期比如123,注意0是星期日
|
|
|
$config=Db::name('sign_image')->where('date',$date)->find();
|
|
|
$music=json_decode($config['music'],true);
|
|
|
$music=$music[rand(0,count($music,0)-1)];
|
|
|
if (!empty($config['music'])) {
|
|
|
$music = json_decode($config['music'], true);
|
|
|
$music = $music[rand(0, count($music, 0) - 1)];
|
|
|
}
|
|
|
$this->success('渲染数据',array(
|
|
|
'background'=>cmf_get_image_preview_url($config['image']),
|
|
|
'music'=>cmf_get_file_download_url($music['url']),
|
...
|
...
|
|