问题描述
我希望这个用户快速插入调试命令,但是完成后,它不会显示“ $”符号。
import UIKit
import Flutter
@UIApplicationMain
@objc class AppDelegate: FlutterAppDelegate {
var methodChannel: FlutterMethodChannel!
override func application(
_ application: UIApplication,didFinishLaunchingWithOptions launchOptions:
[UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
let rootViewController : FlutterViewController = window?.rootViewController as! FlutterViewController
methodChannel = FlutterMethodChannel(name: "com.example.channeltest/changetext",binaryMessenger: rootViewController as! FlutterBinaryMessenger)
//This call would obvIoUsly be somewhere else in a real world example,but I'm just
//testing if I can invoke the method in my dart code at all..
methodChannel.invokeMethod("some_method_name",arguments: nil)
GeneratedpluginRegistrant.register(with: self)
return super.application(application,didFinishLaunchingWithOptions: launchOptions)
}
}
使用 frole = # here I need to set a variable via the following message .family role MaosFamily
post = {
"_id": self.familydb.count_documents({}) + 1,"role": frole,"voice": None,"boss": ctx.author.id,"zam": None
}
self.shopdb.insert_one(post)
时得到以下信息:
"Debug MysqL": {
"prefix": "debug","body": [
"lib::$db->debug = true;"
],"description": "debug MysqL"
},
任何想法可能是什么问题?
解决方法
您需要投入其他美元来逃脱第一个美元:lib::$$db->debug = true;