|
|
|
|
@ -77,7 +77,7 @@ class CourseContent extends SoftDeletesModel
|
|
|
|
|
'secret' => \config('app.applet_secret')
|
|
|
|
|
];
|
|
|
|
|
$app = Factory::miniProgram($config);
|
|
|
|
|
$tmp = $app->app_code->get('/packages/sign/index?course_content_id=' . $courseContentId, [
|
|
|
|
|
$tmp = $app->app_code->get("/packages/sign/index?course_id={$courseContent->course_id}&course_content_id={$courseContentId}", [
|
|
|
|
|
// 'env_version' => "release" // 正式版
|
|
|
|
|
'env_version' => "trial" // 体验版
|
|
|
|
|
]);
|
|
|
|
|
|