Commit f820dc6f by 杨昕

修改media格式

parent 314fbefc
Pipeline #9768 passed with stages
in 33 seconds
...@@ -25,7 +25,7 @@ class MediaController extends Controller ...@@ -25,7 +25,7 @@ class MediaController extends Controller
public function index(Request $request){ public function index(Request $request){
$result = handler_drive(function () use ($request) { $result = handler_drive(function () use ($request) {
return ["mediaID" => date('YmdHis',time()).generateRandomNum(8)]; return ["mediaID" => 'mad-'.generateRandomNum(16)];
}); });
return success($result); return success($result);
} }
......
...@@ -276,9 +276,9 @@ ...@@ -276,9 +276,9 @@
}); });
} }
updateConfig(); updateConfig(1);
function updateConfig() { function updateConfig(num) {
var options = {}; var options = {};
options.locale = { options.locale = {
...@@ -294,11 +294,12 @@ ...@@ -294,11 +294,12 @@
daysOfWeek: ['日', '一', '二', '三', '四', '五','六'], daysOfWeek: ['日', '一', '二', '三', '四', '五','六'],
monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], monthNames: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
firstDay: 1, firstDay: 1,
autoApply:false, autoApply:true,
}; };
$('#endDate').daterangepicker(options, function(start, end) { $('#endDate').daterangepicker(options, function(start, end) {
console.log('New date range selected: ' + start.format('YYYY-MM-DD') + ' to ' + end.format('YYYY-MM-DD') ); console.log('New date range selected: ' + start.format('YYYY-MM-DD') + ' to ' + end.format('YYYY-MM-DD') );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment