我在寻找解决方案如何更新mariadb在xampp 32 bit视窗系统上,但没有发现任何that.I文章刚刚发现这个链接.请帮我看看如何更新.我要JSON支持,这就是为什么我从寻找更新V10.1到V10.2.或者,如果有任何其他方法,请告诉我
目前的版本是 10.1.19-MariaDB
我正在研究Instagram API,并找到https://i.instagram.com/api/v1许多git repos(最近更新了一些)所使用的URL ,但是当我转到Instagram时,那里没有此类URL。谁能指导我该网址的用途以及如何使用它,因为当我点击时
https://i.instagram.com/api/v1/accounts/login/
Run Code Online (Sandbox Code Playgroud)
通过邮递员,我收到以下消息
{“ message”:“您的Instagram版本已过时。请升级您的应用以登录到Instagram。”,“ status”:“失败”,
“ error_type”:“ needs_upgrade”}
还有一件事。我和一个在android中工作的朋友在一起,他在一个用于增加追随者的应用程序上进行了逆向工程,并且该应用程序也使用相同的端点并在该应用程序上工作。
我有一个查询,laravel其中工作正常.
$subjects = $app->db->table('subjects')->LeftJoin('downloads', 'subjects.subjectID', '=', 'downloads.subject_id')
->where('universityID', $currentUser->universityID)->where('semesterID', $currentUser->semesterID)->where('courseID', $currentUser->courseID)
->select('subjects.subjectID', 'subjects.subjectName', 'subjects.price', 'downloads.is_download' )
->orderBy('subjectID')
->get();
Run Code Online (Sandbox Code Playgroud)
is_download当表中没有相对条目时,只有一个问题为null.经过一些研究后,我发现有一个功能IFNULL,我可以改用is_download null它0.所以这是我的查询无法正常工作.空白屏幕显示.
$subjects = $app->db->table('subjects')->LeftJoin('downloads', 'subjects.subjectID', '=', 'downloads.subject_id')
->where('universityID', $currentUser->universityID)->where('semesterID', $currentUser->semesterID)->where('courseID', $currentUser->courseID)
->select('subjects.subjectID', 'subjects.subjectName', 'subjects.price', IFNULL( `downloads`.`is_download` , 0 ) )
->orderBy('subjectID')
->get();
Run Code Online (Sandbox Code Playgroud)
我能够在我的phpmyadmin中编写此查询,但不知道如何写入 laravel
这是api,所以整个代码看起来像
use Illuminate\Database\Query\Expression as raw;
use project\Models\Subject;
use project\Models\Semester;
use project\Models\StudentRegistration;
$app->get('/api/getSubject/:studentID', function($studentID) use ($app) {
error_reporting(E_ALL);
$currentUser = StudentRegistration::where('studentID', $studentID)->first();
$subjects = $app->db->table('subjects')->LeftJoin('downloads', 'subjects.subjectID', '=', 'downloads.subject_id')
->where('universityID', …Run Code Online (Sandbox Code Playgroud)